4 pkgdesc="Netcut-like program for Linux written in PyQt"
5 url="http://bitbucket.org/a_atalla/tuxcut/"
8 depends=('python' 'pyqt' 'iproute2' 'dsniff' 'arpscan' 'arptables')
9 source=(http://bitbucket.org/a_atalla/$pkgname/downloads/TuxCut-$pkgver.tgz)
10 md5sums=('764bfb29310a2e3e2368a488a021ca21')
12 tar xzf TuxCut-$pkgver.tgz -C $startdir/src
13 cd $startdir/src/TuxCut-$pkgver
14 rm -rf .??* # Remove hidden files
15 find . -name '*~' -type f -exec rm '{}' \; # Remove backup files
16 sed -i 's/gksu/python/' $startdir/src/TuxCut-$pkgver/usr/bin/tuxcut
18 mkdir -p $startdir/pkg/usr/bin
19 install -m755 $startdir/src/TuxCut-$pkgver/usr/bin/tuxcut $startdir/pkg/usr/bin
21 mkdir -p $startdir/pkg/usr/share/{applications,icons,tuxcut/pix}
22 install -m644 $startdir/src/TuxCut-$pkgver/usr/share/applications/tuxcut.desktop $startdir/pkg/usr/share/applications
23 install -m644 $startdir/src/TuxCut-$pkgver/usr/share/icons/tuxcut.png $startdir/pkg/usr/share/icons
24 install -m644 $startdir/src/TuxCut-$pkgver/usr/share/tuxcut/{*.py,*.ui} $startdir/pkg/usr/share/tuxcut
25 install -m644 $startdir/src/TuxCut-$pkgver/usr/share/tuxcut/pix/* $startdir/pkg/usr/share/tuxcut/pix