updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tuxcut / PKGBUILD
blob4d10c8cd869dbd918fd94d54d4810247ecf15f69
1 pkgname=tuxcut
2 pkgver=3.2
3 pkgrel=1
4 pkgdesc="Netcut-like program for Linux written in PyQt"
5 url="http://bitbucket.org/a_atalla/tuxcut/"
6 arch=('i686' 'x86_64')
7 license="GPL2"
8 depends=('python' 'pyqt' 'iproute2' 'dsniff' 'arpscan' 'arptables')
9 source=(http://bitbucket.org/a_atalla/$pkgname/downloads/TuxCut-$pkgver.tgz)
10 md5sums=('764bfb29310a2e3e2368a488a021ca21')
11 build() {
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
17         
18         mkdir -p $startdir/pkg/usr/bin
19         install -m755 $startdir/src/TuxCut-$pkgver/usr/bin/tuxcut $startdir/pkg/usr/bin
20         
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