Don't like ads? PRO users don't see any ads ;-)
Guest

gdevilspie (python3 -> python2)

By: a guest on Nov 4th, 2010  |  syntax: Bash  |  size: 0.67 KB  |  hits: 174  |  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. # Contributor: Colin Shea <colins@evaryont.ath.cx>
  2. pkgname=gdevilspie
  3. pkgver=0.5
  4. pkgrel=1
  5. pkgdesc="pyGTK interface to devilspie"
  6. arch=('i686' 'x86_64')
  7. url="http://code.google.com/p/gdevilspie"
  8. license=('GPL')
  9. depends=('pygtk' 'devilspie' 'python-wnck')
  10. makedepends=()
  11. source=(http://gdevilspie.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
  12. md5sums=('aab8eecb47599467c65c77d3eddb2d5c')
  13.  
  14. build() {
  15.   cd "$srcdir/$pkgname-$pkgver"
  16.  
  17.   sed 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/g' gdevilspie > gdevilspie2
  18.   mv gdevilspie2 gdevilspie
  19.   chmod +x gdevilspie
  20.  
  21.   mkdir -p $pkgdir/usr
  22.   python2 setup.py install --prefix $pkgdir/usr
  23. }
  24.  
  25. # vim:set ts=2 sw=2 et: