#Packager: Richard Lapointe #Former Packager(s): Name #Anything commented is optional and can be deleted pkgname=torrent-search pkgver=0.9.1.1 pkgrel=2rl #arch=noarch source=(http://downloads.sourceforge.net/project/torrent-search/torrent-search/0.9.1.1/torrent-search_0.9.1.1.tar.gz) sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver/ docs=("authors" "install" "readme" "copying") url=http://torrent-search.sourceforge.net/ #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') #doinst() { # #} slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "torrent-search (a torrent searching application)" "Torrent Search is a torrent searching application developed in Python," "using GTK+ for its graphical interface. Torrent Search looks for" "torrent files on different websites, and allows the user to filter the" "results, making it very easy to find the torrent you want." "The websites are integrated using plugins, allowing to add new" "websites or improve the existing plugins very quickly." ) build() { cd $startdir/src/$pkgname/ python setup.py install --prefix=/usr --root=$startdir/pkg # lets deal with the icons for size in 16 22 48 64 128 do mkdir -p $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/ cp -rf $startdir/pkg/usr/share/$pkgname/icons/${size}x${size}/$pkgname.png $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/ done # and now with the docs for l in en fr nl do mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver/html/$l/ cp -rf $startdir/pkg/usr/share/doc/$pkgname/html/$l/index.html $startdir/pkg/usr doc/$pkgname-$pkgver/html/$l/ done rm -rf $startdir/pkg/usr/share/doc/$pkgname/ }