updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / cx_oracle / PKGBUILD
blobbe1428b228cfa710958401ba69800c2db3c3e994
1 # Contributor: Michael Kapelko <kornerr@gmail.com>
2 # Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
3 pkgname=cx_oracle
4 pkgver=5.1.1
5 pkgrel=1
6 pkgdesc="Python extension module that allows access to Oracle databases"
7 arch=('i686' 'x86_64')
8 url=('http://cx-oracle.sourceforge.net/')
9 license=('custom')
10 depends=('python2' 'instantclient-sdk')
11 source=(http://downloads.sourceforge.net/cx-oracle/cx_Oracle-$pkgver.tar.gz)
12 md5sums=('ac7949c41392459f187cadf65907c97b')
14 build() {
15   cd $srcdir/cx_Oracle-$pkgver
16   ORACLE_HOME=/opt/instantclient python2 setup.py install --root=$pkgdir || return 1
17   # Install license.
18   install -D -m 644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE