#Maintainer: Dimitris Tzemos pkgname=deluge pkgver=1.3.13 pkgrel=1dj source=("http://download.deluge-torrent.org/source/$pkgname-$pkgver.tar.bz2") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("README" "LICENSE" "Changelog" "DEPENDS" "docs") url=http://deluge-torrent.org slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Deluge (BitTorrent Client)" "Deluge is a bittorrent client for Linux and other Unix-Like" "operating systems. Deluge was created because of the lack of" "a good, native, GTK based torrent solution for Linux." ) build() { cd $startdir/src/$pkgname-$pkgver || return 1 python setup.py build || exit 1 python setup.py install --root=$startdir/pkg || exit 1 mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps || return 1 cp deluge/data/pixmaps/deluge.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps || return 1 cp deluge/data/share/applications/deluge.desktop $startdir/pkg/usr/share/applications/ || return 1 sed -i "s/Categories=.*/Categories=Network;/" $startdir/pkg/usr/share/applications/deluge.desktop || return 1 sed -i "s/.png//" $startdir/pkg/usr/share/applications/deluge.desktop || return 1 }