PKGBUILDs/extra/pypgsql/PKGBUILD
2009-10-09 21:23:22 -05:00

23 lines
729 B
Bash

# $Id: PKGBUILD 52305 2009-09-17 07:19:18Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=pypgsql
pkgver=2.5.1
pkgrel=6
pkgdesc="A python client library for postgresql"
arch=(i686 x86_64)
license=('custom')
url="http://pypgsql.sourceforge.net/"
depends=('python-egenix-mx-base>=2.0.6-3' 'postgresql-libs>=8.4')
source=(http://downloads.sourceforge.net/${pkgname}/pyPgSQL-${pkgver}.tar.gz
'COPYING')
md5sums=('82670f6f1652aa4766fdaec2cb43debd'
'235c239b51a8b8e6b53c414ef71d7612')
build() {
cd ${srcdir}/pyPgSQL-${pkgver} || return 1
python setup.py install --root=${pkgdir} || return 1
# install custom license
install -Dm644 $srcdir/COPYING \
$pkgdir/usr/share/licenses/$pkgname/COPYING
}