PKGBUILD 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $Id$
  2. # Maintainer: Luke Shumaker <lukeshu@lukeshu.com>
  3. # Maintainer (Arch:python-psycopg2): Sergej Pupykin <pupykin.s+arch@gmail.com>
  4. # Maintainer (Arch:python-psycopg2): Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
  5. # Maintainer (Arch:python-psycopg2): Douglas Soares de Andrade <dsa@aur.archlinux.org>
  6. # Rational for inclusion in [libre]:
  7. # - Used by libre/parabolaweb-utils
  8. pkgbase=python-psycopg2
  9. pkgname=('python-psycopg2' 'python2-psycopg2')
  10. pkgbase=${pkgbase}.6
  11. pkgname=("${pkgname[@]/%/.6}")
  12. _gitver=4ae2a366109e6f7258728d46ec34e26cf91d53b7
  13. pkgver=2.6.3dev0.rev21.git4ae2a366
  14. pkgrel=1
  15. pkgdesc="A PostgreSQL database adapter for the Python programming language."
  16. arch=('i686' 'x86_64')
  17. arch+=('armv7h')
  18. url="http://initd.org/psycopg/"
  19. license=('LGPL3')
  20. makedepends=('python2' 'python' 'postgresql-libs>=8.4.1')
  21. makedepends+=('git')
  22. source=("psycopg2-$pkgver::git+https://github.com/psycopg/psycopg2.git#commit=${_gitver}")
  23. sha256sums=('SKIP')
  24. pkgver() {
  25. cd "$srcdir/psycopg2-$pkgver"
  26. echo "$(python setup.py --version|sed -r 's/\.([a-z])/\1/')$(git describe --tags|sed -r -e 's/-g/.git/' -e 's/.*-/.rev/')"
  27. }
  28. build() {
  29. cd "$srcdir/psycopg2-$pkgver"
  30. sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg
  31. }
  32. package_python-psycopg2.6() {
  33. depends=('python' 'postgresql-libs>=8.4.1')
  34. provides=("python-psycopg2=$pkgver")
  35. conflicts=('python-psycopg2')
  36. cd "$srcdir/psycopg2-$pkgver"
  37. python setup.py install --root="$pkgdir"
  38. }
  39. package_python2-psycopg2.6() {
  40. depends=('python2' 'postgresql-libs>=8.4.1')
  41. provides=("python2-psycopg2=$pkgver")
  42. conflicts=('python2-psycopg2')
  43. cd "$srcdir/psycopg2-$pkgver"
  44. python2 setup.py install --root="$pkgdir"
  45. }