aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cffi/APKBUILD
blob: db1e14d1ff0bcfaa54f8f18472bd9b314764751d (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-cffi
pkgver=0.7.2
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/c/cffi/cffi-$pkgver.tar.gz"

_builddir="$srcdir"/cffi-$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="d329f5cb2053fd31dafc02e2c9ef0299  cffi-0.7.2.tar.gz"
sha256sums="b723ab49b48c1604e5a3b5e838b0049eaa61e365408a71e40ba0a42d16472042  cffi-0.7.2.tar.gz"
sha512sums="f4b6ca2c9fa0bf0698b62cf4506b86cd769648a45555d414eb9f95535333b47b4e8cc5c5be13cde7bdecb2790a8e340f4d13e52c996dbc7b69f2390243321b6a  cffi-0.7.2.tar.gz"