Want more features on Pastebin? Sign Up, it's FREE!
Guest

tuxcut PKGBUILD

By: a guest on Nov 5th, 2010  |  syntax: None  |  size: 1.18 KB  |  views: 234  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=tuxcut
  2. pkgver=3.2
  3. pkgrel=2
  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=('python2' 'pyqt' 'iproute2' 'dsniff' 'arpscan' 'arptables')
  9. source=(http://bitbucket.org/a_atalla/$pkgname/downloads/TuxCut-${pkgver}.tgz)
  10. md5sums=('764bfb29310a2e3e2368a488a021ca21')
  11. build() {
  12.         sed -i 's/gksu/python/' ${srcdir}/TuxCut-${pkgver}/usr/bin/tuxcut
  13.         sed -i 's|^#!/usr/bin/python$|#!/usr/bin/python2|' ${srcdir}/TuxCut-${pkgver}/usr/share/tuxcut/tuxcut.py
  14.         sed -i 's/python/python2/' ${srcdir}/TuxCut-${pkgver}/usr/bin/tuxcut
  15.  
  16.         mkdir -p ${pkgdir}/usr/bin
  17.         install -m755 ${srcdir}/TuxCut-${pkgver}/usr/bin/tuxcut ${pkgdir}/usr/bin
  18.  
  19.         mkdir -p ${pkgdir}/usr/share/{applications,icons,tuxcut/pix}
  20.         install -m644 ${srcdir}/TuxCut-${pkgver}/usr/share/applications/tuxcut.desktop ${pkgdir}/usr/share/applications
  21.         install -m644 ${srcdir}/TuxCut-${pkgver}/usr/share/icons/tuxcut.png ${pkgdir}/usr/share/icons
  22.         install -m644 ${srcdir}/TuxCut-${pkgver}/usr/share/tuxcut/{*.py,*.ui} ${pkgdir}/usr/share/tuxcut
  23.         install -m644 ${srcdir}/TuxCut-${pkgver}/usr/share/tuxcut/pix/* ${pkgdir}/usr/share/tuxcut/pix
  24. }
clone this paste RAW Paste Data