Advertisement
zeppelinlg

PKGBUILD

Mar 27th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. # Contributor: MutantMonkey <mutantmonkey@gmail.com>
  2. pkgname=crunchyfrog-hg
  3. pkgver=722
  4. pkgrel=2
  5. pkgdesc="SQL editor and database schema browser for the GNOME desktop, latest development version"
  6. url='http://code.google.com/p/crunchyfrog'
  7. arch=('any')
  8. license=('GPL3')
  9. depends=('python' 'python2-configobj' 'pygtk' 'pygtksourceview2' 'pycairo' \
  10. 'pyxdg' 'gnome-python' 'gnome-python-desktop' \
  11. 'python-sphinx' 'python-sqlparse')
  12. optdepends=('mysql-python: To handle MySQL Databases',
  13. 'python-psycopg2: To handle PostgreSQL Databases',
  14. 'python-pysqlite: To handle SQLite Databases',
  15. 'cx_oracle: To handle Oracle Databases (just for i686)',
  16. 'pymssql: To handle Microsoft SQL Server Databases',
  17. 'kinterbasdb: To handle Firebird Databases'
  18. 'informixdb: To handle Informix Databases'
  19. 'sapdb: To handle MaxDB'
  20. 'ipython: To use built-in python shell'
  21. )
  22. makedepends=('mercurial')
  23. provides=('crunchyfrog')
  24. conflicts=('crunchyfrog')
  25. source=()
  26. md5sums=()
  27. sha256sums=()
  28.  
  29. _hgroot="https://crunchyfrog.googlecode.com/hg"
  30. _hgrepo="crunchyfrog"
  31.  
  32. build() {
  33. cd ${srcdir}/${_hgrepo}
  34. # python2 fix
  35. for file in $(find . -name '*.py' -print); do
  36. sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
  37. sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
  38. done
  39. python2 setup.py install --root=${pkgdir}/ --optimize=1 || return 1
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement