diff options
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" |