Date: Saturday, January 25, 2020 @ 16:12:49 Author: jlichtblau Revision: 555462
upgpkg: python-pygit2 1.0.2-1 - new upstream release Modified: python-pygit2/trunk/PKGBUILD ----------+ PKGBUILD | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-01-25 16:06:48 UTC (rev 555461) +++ PKGBUILD 2020-01-25 16:12:49 UTC (rev 555462) @@ -2,33 +2,20 @@ # Maintainer: Jaroslav Lichtblau <[email protected]> # Contributor: Daniel Micay <[email protected]> -pkgbase=python-pygit2 -pkgname=('python-pygit2' 'python2-pygit2') -pkgver=0.28.2 -pkgrel=2 +pkgname=python-pygit2 +pkgver=1.0.2 +pkgrel=1 pkgdesc='Python bindings for libgit2' arch=('x86_64') url="https://github.com/libgit2/pygit2" license=('GPL2') -depends=('libgit2>=1:0.27.0') -makedepends=('python-cffi' 'python2-cffi' 'python-setuptools' 'python2-setuptools' 'git' 'python-six' 'python2-six') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/libgit2/pygit2/archive/v${pkgver}.tar.gz") -sha256sums=('5e0d357e5998ec6740bc085d06df4d4039f08cb113ad407916614328ce9eb500') +depends=('libgit2>=1:0.27.0' 'python-cffi' 'python-six') +makedepends=('python-cffi' 'python-setuptools' 'git' 'python-six') +source=($pkgname-$pkgver.tar.gz::https://github.com/libgit2/pygit2/archive/v$pkgver.tar.gz) +sha256sums=('4e2f99b4def1475223e7e19b5460b2fab021b4a6fd9963fbf0c16451e77c6a4e') -package_python-pygit2() { - depends+=('python-cffi' 'python-six') - replaces=('python-libgit2') - conflicts=('python-libgit2') +package() { + cd pygit2-$pkgver - cd "pygit2-$pkgver" - LANG=en_US.UTF8 python setup.py install --root="$pkgdir" --optimize=1 + LANG=en_US.UTF8 python setup.py install --root="${pkgdir}" --optimize=1 } - -package_python2-pygit2() { - depends+=('python2-cffi' 'python2-six') - replaces=('python2-libgit2') - conflicts=('python2-libgit2') - - cd "pygit2-$pkgver" - python2 setup.py install --root="$pkgdir" --optimize=1 -}
