#Maintainer: Shador pkgname=paco pkgver=2.0.7 pkgrel=1ab arch=x86_64 source=("http://downloads.sourceforge.net/project/paco/paco/2.0.7/paco-2.0.7.tar.bz2") sourcetemplate="http://gaia.homelinux.org/salix/packages-x86_64/$pkgname/$pkgver/" docs=("readme" "install" "copying" "changelog" "bugs") url='http://paco.sourceforge.net/' 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() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi threads="-j${threadcount}" cd $startdir/src/$pkgname-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man || return 1 make $threads || return 1 make install DESTDIR=$startdir/pkg || return 1 install -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.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/ }