#!/bin/sh ## Advanced.PkgBuild script for: libtrash ## ## Amigo PkgBuild-0.3 - Gilbert Ashley ## ##### ------------Standard Package Variables------------------- # Most source code only needs these 4 variables set. # Set SRC_SUFFIX to ".tar.gz" ".tgz" ".tar.bz2" or ".tbz" BUILD="1" NAME="libtrash" VERSION="2.2" SRC_SUFFIX=".tar.bz2" #####--------Common Overrides and Options---------------------- # PRE_FIX="" # EXTRA_CONFIGS="" DOCLIST="CHANGE.LOG COPYING README config.txt" # GROUP_NAME="" #######----------------Processing------------------------------ # Get functions and read in configuration files source /usr/share/Amigo/PkgBuild/FUNCTIONS ; # This template calls each process individually so you can add # extra instructions between processes, or even leave out steps. pre_process ; find_source ; make_dirs ; unpack_source ; fix_source_perms ; # configure_source ; compile_source ; # fake_install ; mkdir -p $PKG_DIR/usr/bin cp -a $SRC_DIR/cleanTrash/strash-0.9/strash $PKG_DIR/usr/bin mkdir -p $PKG_DIR/usr/lib cp -a $SRC_DIR/src/libtrash.so.2.2 $PKG_DIR/usr/lib # don't need this if you have the doinst.sh # cd $PKG_DIR/usr/lib ; ln -sf libtrash.so.2.2 libtrash.so mkdir -p $PKG_DIR/etc cp -a $SRC_DIR/src/libtrash.conf.sys $PKG_DIR/etc/libtrash.conf chown root.root $PKG_DIR/etc/libtrash.conf chown 444 $PKG_DIR/etc/libtrash.conf mkdir -p $PKG_DIR/usr/man/man8 cp -a $SRC_DIR/cleanTrash/strash-0.9/strash.8 $PKG_DIR/usr/man/man8 fix_pkg_perms ; strip_bins ; create_docs ; cp -a $SRC_DIR/cleanTrash/README $PKG_DIR/usr/doc/$NAME-$VERSION/README.cleanTrash cp -a $SRC_DIR/cleanTrash/ct2.pl $PKG_DIR/usr/doc/$NAME-$VERSION cp -a $SRC_DIR/cleanTrash/cleanTrash $PKG_DIR/usr/doc/$NAME-$VERSION/cleanTrash.pl cp -a $SRC_DIR/cleanTrash/strash-0.9/README $PKG_DIR/usr/doc/$NAME-$VERSION/README.strash compress_man_pages ; make_description ; make_doinst ; make_package ; post_process ; exit 0 ## See the Amigo PkgBuild documentation for help and examples.