Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 14th, 2013  |  syntax: Bash  |  size: 0.92 KB  |  views: 90  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: DarkHeart <fumbles@ymail.com>
  2.  
  3. pkgname=emma
  4. pkgver=0.6
  5. pkgrel=4
  6. pkgdesc="A platform-independent mysql administrator frontend using python and gtk+"
  7. arch=('any')
  8. url="http://www.fastflo.de/projects/emma"
  9. license=('GPL')
  10. depends=('python2' 'pygtk' 'mysql-python')
  11. source=(http://www.fastflo.de/files/emma/downloads/python_src/$pkgname-$pkgver.tar.gz \
  12.         $pkgname.desktop)
  13.  
  14. md5sums=('da3bd1d1f4ee75d02a4c8637e28fd732'
  15.          '2c1a3d150735ea8be085c44e6f406771')
  16.  
  17. build() {
  18.   cd $srcdir/$pkgname-$pkgver
  19.   find . -name '*.py' -exec sed -i 's|/usr/bin/env python2.4|/usr/bin/python2|' {} \;
  20. }
  21.  
  22. package() {
  23.   cd $srcdir/$pkgname-$pkgver
  24.   python2 setup.py install --root=$pkgdir --optimize=1
  25.   mkdir -p $pkgdir/usr/share/{applications,pixmaps}
  26.   install -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/
  27.   install -m644 $srcdir/$pkgname-$pkgver/icons/$pkgname.png $pkgdir/usr/share/pixmaps/
  28. }