From 7ed3b924c77c18509ab30366c9d1cfd804898f5f Mon Sep 17 00:00:00 2001 From: Leo Date: Mon, 27 May 2019 18:11:28 -0300 Subject: community/py3-pygit2: upgrade to 0.28.2 --- community/py3-pygit2/APKBUILD | 43 +++++++++++-------------------------------- 1 file changed, 11 insertions(+), 32 deletions(-) (limited to 'community/py3-pygit2') diff --git a/community/py3-pygit2/APKBUILD b/community/py3-pygit2/APKBUILD index 0138e6b194..4bcf93de4c 100644 --- a/community/py3-pygit2/APKBUILD +++ b/community/py3-pygit2/APKBUILD @@ -1,53 +1,32 @@ +# Contributor: Leo # Contributor: Pierre-Gildas MILLON # Maintainer: Drew DeVault -pkgname=py-pygit2 +pkgname=py3-pygit2 _pkgname=pygit2 -pkgver=0.28.1 +pkgver=0.28.2 pkgrel=0 pkgdesc="Python bindings for libgit2" url="https://github.com/libgit2/pygit2" arch="all" -license="GPL-2.0-only-WITH-GCC-exception-2.0" -depends="py-cffi py-six" -makedepends="python2-dev python3-dev py-setuptools libgit2-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +license="GPL-2.0 WITH GCC-exception-2.0" +depends="py3-cffi py3-six" +makedepends="python3-dev py3-setuptools libgit2-dev" source="https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +replaces="py-pygit" # Backward compat +provides="py-pygit=$pkgver-r$pkgrel" # Backward compat + build() { - cd "$builddir" - python2 setup.py build python3 setup.py build } check() { - cd "$builddir" - python2 setup.py check python3 setup.py check } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="46bb9d6150b7413311f26ea1aeae15cdcd22a2d5c4cafa17bd8a1c02dbf0c9a630cf89583e77a07be5c74334ac28a672de31290ba986476ded25e8a19abf7f3b pygit2-0.28.1.tar.gz" +sha512sums="3f742cdcc9d603c9cc9ef2e0a545da8bcfb555a0bdeea1c73c53a284b43d40ad6b28c87a029578ad7b1c8f2bf56ecd2859dac8dd836474bfc66223ff4af9e8f0 pygit2-0.28.2.tar.gz" -- cgit v1.2.3