diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-29 14:55:24 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-29 14:55:45 +0100 |
commit | 41ece0af5baebe1547d420b95a322f4d728559db (patch) | |
tree | a697fd81235915df29dd5307e3017475ed92c823 /community/py-pygit2 | |
parent | c730a325b2820cb24514ca5ee7591083a5841016 (diff) | |
download | aports-41ece0af5baebe1547d420b95a322f4d728559db.tar.bz2 aports-41ece0af5baebe1547d420b95a322f4d728559db.tar.xz |
community/py-pygit2: improve abuild
Diffstat (limited to 'community/py-pygit2')
-rw-r--r-- | community/py-pygit2/APKBUILD | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/community/py-pygit2/APKBUILD b/community/py-pygit2/APKBUILD index 1246373a9d..afa7460078 100644 --- a/community/py-pygit2/APKBUILD +++ b/community/py-pygit2/APKBUILD @@ -8,10 +8,10 @@ pkgdesc="Python bindings for libgit2" url="https://github.com/libgit2/pygit2" arch="all" license="GPLv2" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -depends="" -makedepends="python2-dev python3-dev py-setuptools py2-cffi py3-cffi py2-six py3-six +_pydepends="py-cffi py-six" +makedepends="$_pydepends python2-dev python3-dev py-setuptools libgit2-dev libssh2-dev libressl-dev" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="$pkgname-$pkgver.tar.gz::https://github.com/libgit2/$_pkgname/archive/v${pkgver}.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" @@ -27,23 +27,22 @@ package() { _py2() { replaces="$pkgname" - depends="py2-cffi py2-six" + depends="${_pydepends//py-/py2-}" _py python2 } _py3() { - depends="py3-cffi py3-six" + depends="${_pydepends//py-/py3-}" _py python3 } _py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - depends="$depends $python libgit2" + local python="$1" + pkgdesc="$pkgdesc (for $python)" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1 + $python setup.py install --prefix=/usr --root="$subpkgdir" } md5sums="8c3b4893f3e3ae2937101e69863146fe py-pygit2-0.24.2.tar.gz" |