mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/py-cffi: new aport
This commit is contained in:
parent
0d1c4dd652
commit
b5d464adaf
40
testing/py-cffi/APKBUILD
Normal file
40
testing/py-cffi/APKBUILD
Normal file
@ -0,0 +1,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"
|
||||
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"
|
||||
Loading…
x
Reference in New Issue
Block a user