#Packager: Shador pkgname=ario pkgver=1.4.4 pkgrel=1ab arch=x86_64 source=("http://downloads.sourceforge.net/project/ario-player/ario-player/${pkgver}/ario-${pkgver}.tar.gz") sourcetemplate="http://gaia.homelinux.org/salix/packages-x86_64/$pkgname/$pkgver/" docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url='http://ario-player.sourceforge.net/' slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (a GTK2 client for MPD)" "Ario is a GTK2 client for MPD (Music player daemon). The interface" "used to browse the library is inspired by Rhythmbox but Ario aims to" "be much lighter and faster." "It runs on various Unixes (Linux, OpenBSD, Mac OS X...) and Windows." ) 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 \ --docdir=/usr/doc/$pkgname-$pkgver/ \ --mandir=/usr/man \ --enable-python \ --disable-avahi || return 1 make $threads || return 1 make install DESTDIR=$startdir/pkg || return 1 }