#Maintainer: Shador pkgname=mpc pkgver=0.19 pkgrel=1ab arch=x86_64 source=("http://downloads.sourceforge.net/project/musicpd/mpc/0.19/mpc-0.19.tar.bz2") sourcetemplate="http://gaia.homelinux.org/salix/packages-x86_64/$pkgname/$pkgver/" docs=("readme" "install" "copying" "authors" "news") url='http://mpd.wikia.com/wiki/Client:Mpc' slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (a command line interface to MPD)" "A minimalist command line interface to MPD, not to be confused with" "musepack." ) 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 $startdir/pkg/usr/doc/$pkgname-$pkgver/ mv -v $startdir/pkg/usr/share/doc/$pkgname/* $startdir/pkg/usr/doc/$pkgname-$pkgver/ rmdir -v $startdir/pkg/usr/share/doc/$pkgname/ $startdir/pkg/usr/share/doc/ $startdir/pkg/usr/share/ }