blob: 4577f1c86cc5be18f3e2b36f84121d88981d9b84 (
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.9.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/${_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="b1bf4625ae07a8a932f2f1a2eb200c54 cffi-0.9.2.tar.gz"
sha256sums="1988ce7ff9c64ecd5077776175e90fd8f0a8c827cb241a23647175ce08126bb2 cffi-0.9.2.tar.gz"
sha512sums="93371a1189955d3f794915f8e7c6f6b9ab36cd531ff0ddeeb2108364c94dbf4dbe5d7d3f75e0aa52576d1a59559c13ec3e0f68dec4d52e6221e683ac519b850c cffi-0.9.2.tar.gz"
|