diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 19:36:45 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 20:09:48 +0200 |
commit | ea83412044c5ee839cafdf01b8ff5294244af1c4 (patch) | |
tree | 5e2581681b279f9550dd36e05c4f429fb3265e5f /main | |
parent | f9edb4860e266b202a026c49f4e0b68dd7cc9a3c (diff) | |
download | aports-ea83412044c5ee839cafdf01b8ff5294244af1c4.tar.bz2 aports-ea83412044c5ee839cafdf01b8ff5294244af1c4.tar.xz |
main/py-cffi: improve abuild and fix to not silently fail
Diffstat (limited to 'main')
-rw-r--r-- | main/py-cffi/APKBUILD | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/main/py-cffi/APKBUILD b/main/py-cffi/APKBUILD index 14e0c78fed..bc49728da5 100644 --- a/main/py-cffi/APKBUILD +++ b/main/py-cffi/APKBUILD @@ -4,16 +4,15 @@ pkgname=py-cffi _pkgname=cffi pkgver=1.7.0 pkgrel=1 -pkgdesc="A foreign function interface for calling C code from python" +pkgdesc="A foreign function interface for calling C code from Python" url="http://cffi.readthedocs.org/" arch="noarch" license="MIT" depends="" makedepends="python2-dev python3-dev py-setuptools libffi-dev" -install="" subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir"/$_pkgname-$pkgver +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" @@ -25,25 +24,25 @@ package() { mkdir -p "$pkgdir" } - _py() { - local python=$1 - pkgdesc="$pkgdesc - $python" + local python="$1" + pkgdesc="$pkgdesc ${python#python}" arch="all" install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { - _py python2 depends="py2-cparser" replaces="$pkgname" + _py python2 } _py3() { - _py python3 depends="py3-cparser" + _py python3 } md5sums="34122a545060cee58bab88feab57006d cffi-1.7.0.tar.gz" |