summaryrefslogtreecommitdiffstats
path: root/testing/py-psycopg2/APKBUILD
blob: 5e22b2c76d0ce92c6767b3993b1c0b81873b034e (plain)
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
30
31
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-psycopg2
_pkgname=psycopg2
pkgver=2.5.1
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-5/$_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="1b433f83d50d1bc61e09026e906d84c7  psycopg2-2.5.1.tar.gz"
sha256sums="65a70c88a7e02d8bef57aab8636b5795389674c3205fd88ec46a4dffffa7efec  psycopg2-2.5.1.tar.gz"
sha512sums="5e5e867dd10d404831275e0b0fafeeb186e1d39e4de04a16d279f14db921f46bc2e2b7cf92deaec849cabe5b4e6f5d61b928952fc2a4c8d6d86a521035c3bab8  psycopg2-2.5.1.tar.gz"