mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 03:42:37 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# 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"
|