#Packager: Shador pkgname=paco pkgver=2.0.9 pkgrel=1ab source=("http://downloads.sourceforge.net/project/paco/paco/${pkgver}/paco-${pkgver}.tar.bz2") sourcetemplate="http://gaia.homelinux.org/salix/slkbuilds/$pkgname/" docs=("readme" "install" "copying" "changelog" "bugs") url='http://paco.sourceforge.net/' options=('noautodotnew') dotnew=('etc/pacorc') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (a source code package package organzier)" "Paco is a source code package organizer for Unix/Linux systems," "originally written to aid package management when installing an LFS" "system." "When installing a package from sources, paco wraps the 'make install'" "command (or whatever is needed to install the files into the system)," "and generates a log containing the list of all installed files." "Like any other package manager, paco also provides several options to" "show package information in different formats. It can remove packages" "too, among some other basic operations." ) build() { set -e cd $startdir/src/$pkgname-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ --docdir=/usr/doc/$pkgname-$pkgver/ \ --build=$arch-slackware-linux || return 1 make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg || return 1 install -m644 -vD scripts/paco_bash_completion \ $startdir/pkg/etc/bash_completion.d/paco install -vd $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ mv -v $startdir/pkg/usr/share/pixmaps/gpaco{,-package}.png \ $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ install -vd $startdir/pkg/usr/doc/paco-$pkgver/ mv -v $startdir/pkg/usr/share/paco/* \ $startdir/pkg/usr/doc/paco-$pkgver/ rmdir $startdir/pkg/usr/share/paco/ $startdir/pkg/usr/share/pixmaps/ # running gpaco as root is probably more useful as most packages # are likely to be installed as root sed -e 's;\(Icon=.*\)\.png;\1;' \ -e 's;Exec=gpaco;Exec=gksu gpaco;' -i \ $startdir/pkg/usr/share/applications/gpaco.desktop set +e }