#!/bin/sh ## Build script for: mtpaint ## Template: Advanced.PkgBuild ## Amigo PkgBuild-0.3 by Gilbert Ashley ## See the Amigo PkgBuild documentation for help and examples. ##### ------------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="mtpaint" VERSION="0.95" SRC_SUFFIX=".tar.bz2" #####--------Common Overrides and Extras-------------------- # PRE_FIX="/usr" EXTRA_CONFIGS="gtk1" DOCLIST="COPYING NEWS README" #######----------------Processing------------------------------------ # Get functions and read in configuration source /usr/share/Amigo/PkgBuild/FUNCTIONS ; # source /etc/amigo/PkgBuild/GLOBAL.conf ; # This template calls each process individually so you can easily add # instructions between process functions, or 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/src/mtpaint $PKG_DIR/usr/bin chown root.root $PKG_DIR/usr/bin mkdir -p $PKG_DIR/usr/man/man1 cp -a $SRC_DIR/doc/_mtpaint.1 $PKG_DIR/usr/man/man1/mtpaint.1 mkdir -p $PKG_DIR/usr/share/locale/cs/LC_MESSAGES cp -a $SRC_DIR/po/cs.mo $PKG_DIR/usr/share/locale/cs/LC_MESSAGES/mtpaint.mo mkdir -p $PKG_DIR/usr/share/locale/es/LC_MESSAGES cp -a $SRC_DIR/po/es.mo $PKG_DIR/usr/share/locale/es/LC_MESSAGES/mtpaint.mo fix_pkg_perms ; strip_bins ; create_docs ; compress_man_pages ; make_description ; make_doinst ; make_package ; post_process ; exit 0