#Maintainer: Shador pkgname=xpad pkgver=4.0 pkgrel=2ab arch=x86_64 source=("http://launchpad.net/xpad/trunk/4.0/+download/xpad-4.0.tar.bz2") sourcetemplate="http://gaia.homelinux.org/salix/packages-x86_64/$pkgname/$pkgver/" docs=("readme" "install" "copying" "ChangeLog" "authors" "news" "todo" "thanks") url='http://mterry.name/xpad/' extradepends=("python" "PyQt" "sqlalchemy" "simplejson" "numpy" "matplotlib" "MPlayer" "sox" "pyaudio" "beautifulsoup") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (sticky notes application)" "Xpad is a sticky notes application written in GTK+ 2.0. It is a simple" "little application which can be used to help you remember important" "stuff" ) 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 threadcount="-j${threadcount}" cd $startdir/src/$pkgname-$pkgver configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man make $threadcount || return 1 make install DESTDIR=$startdir/pkg for size in 16 24 32 48 64; do dir=$startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps mkdir -p $dir rsvg-convert -a -w ${size} -h ${size} -f png $startdir/pkg/usr/share/icons/hicolor/scalable/apps/xpad.svg -o $dir/xpad.png unset dir done }