#Maintainer: Dimitris Jemos #Mandatory pkgname=flush pkgver=0.9.12 pkgrel=1dj #arch=i486 source=(http://downloads.sourceforge.net/project/flush/flush/0.9.12/flush-0.9.12.tar.bz2) #Optional docs=("install" "copying" "changelog" "authors") url=http://sourceforge.net/projects/flush slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Flush is a GTK-based BitTorrent client." "You can use it to download files from the BitTorrent network." ) build() { cd $startdir/src/$pkgname-$pkgver || return 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc \ make || return 1 make install DESTDIR=$startdir/pkg || return 1 cp flush.desktop $startdir/pkg/usr/share/applications/ || return 1 sed -i "s/Categories=.*/Categories=GTK;Network;FileTransfer;P2P;/" $startdir/pkg/usr/share/applications/flush.desktop || return 1 sed -i "s/.png//" $startdir/pkg/usr/share/applications/flush.desktop || return 1 } # Doinst doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi }