aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-psycopg2/APKBUILD
blob: f28cf6a76aa1881464dfd4368ed6b831e6090af4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-psycopg2
_pkgname=psycopg2
pkgver=2.4.4
pkgrel=0
pkgdesc="Python-PostgreSQL Database Adapter"
url="http://initd.org/psycopg/"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="python-dev postgresql-dev"
install=""
subpackages=""
source="http://initd.org/psycopg/tarballs/PSYCOPG-2-4/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="331255d2d44018bcef2ea192aabc1d6a  psycopg2-2.4.4.tar.gz"