Here you'll find around 100 tarballs with PkgBuild scripts. These are all software which can be compiled with just GTK/GLIB-1.2.
G12 SOURCES
Most of these are repackaged tarballs.
For many of them I have updated the configuration or Makefiles for successful compilation.
A few of them required minor changes to the source code for compiling
with GCC-3.3.4.
In tarballs where source code has been changed, or very major changes in config files have been made, you|ll find notes which indicate such changes.
Having a look at a few of the PkgBuild scripts will show you how easy it is to write one for nearly any source code package. For software which will compile with just ./configure, make, make install, all you have to give is the name, version and suffix of the tarball to write your script.
The whole script without commmets looks like this:
#!/bin/sh
BUILD="1"
NAME="PackageName"
VERSION="0.0.0"
SRC_SUFFIX=".tar.bz2"
source /usr/share/Amigo/PkgBuild/FUNCTIONS ;
do_all_processes ;
exit 0
Or, for more complex control, you can use a step-by-step script which divides the package creation into several steps which you can customize or skip. Again, without comments, it looks like this:
#!/bin/sh
BUILD="1"
NAME="GUIcompletion"
VERSION="0.1.5"
SRC_SUFFIX=".tar.bz2"
pre_process ;
find_source ;
make_dirs ;
unpack_source ;
fix_source_perms ;
configure_source ;
compile_source ;
fake_install ;
fix_pkg_perms ;
strip_bins ;
create_docs ;
compress_man_pages ;
make_description ;
make_doinst ;
make_package ;
post_process ;
exit 0