aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-sqlalchemy/APKBUILD
blob: 0e33231d5b0d1d9d1e5a93f37f2ed86fdf5ca059 (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
32
33
34
35
36
37
38
39
40
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-sqlalchemy
pkgver=0.7.10
pkgrel=0
pkgdesc="object relational mapper for python"
url="http://pypi.python.org/pypi/SQLAlchemy"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"

_builddir="$srcdir"/SQLAlchemy-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

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

md5sums="ecc0cd1cd906d17818a5f08fe13ae19e  SQLAlchemy-0.7.10.tar.gz"
sha256sums="77aa39d65c9d043eba6ba329b359ff867424fd6c403b7c0cb112b65e507e1d66  SQLAlchemy-0.7.10.tar.gz"
sha512sums="631bc4ffb419defa531a66d82449fe48f93c88371ba0b8ab4217d900a0d1d90efe9699d8a9048d5c2ed33948c6d2f7cae46452ee45d442914018f3361e804367  SQLAlchemy-0.7.10.tar.gz"