aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cffi/APKBUILD
blob: 0da9c02e214b8db70ffc3b0334c4e6fe266e700e (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
41
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-cffi
_pkgname=cffi
pkgver=0.8.6
pkgrel=0
pkgdesc="A foreign function interface for calling C code from python"
url="http://cffi.readthedocs.org/"
arch="all"
license="MIT"
depends="python py-cparser"
depends_dev=""
makedepends="python-dev py-setuptools libffi-dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$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="474b5a68299a6f05009171de1dc91be6  cffi-0.8.6.tar.gz"
sha256sums="2532d9e3af9e3c6d0f710fc98b0295b563c7f39cfd97dd2242bd36fbf4900610  cffi-0.8.6.tar.gz"
sha512sums="b913d459bf0d355f0cb42fa0587a940c227d6765450033b14ab4d5281173cd1875cd6872911bb4f0b567cc1c5b0ca330615ec5f6ba205b25c41b683ae8c77790  cffi-0.8.6.tar.gz"