Date: Monday, March 16, 2020 @ 18:12:46 Author: bgyorgy Revision: 599832
upgpkg: python-fasteners 0.15-3: Remove python2 support Modified: python-fasteners/trunk/PKGBUILD ----------+ PKGBUILD | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-03-16 17:53:11 UTC (rev 599831) +++ PKGBUILD 2020-03-16 18:12:46 UTC (rev 599832) @@ -1,15 +1,16 @@ # Maintainer: Lukas Fleischer <[email protected]> # Contributor: Tomislav Ivek <[email protected]> -pkgname=('python-fasteners' 'python2-fasteners') +pkgname=python-fasteners pkgver=0.15 -pkgrel=2 +pkgrel=3 pkgdesc="A python package that provides useful locks." arch=('any') url="https://github.com/harlowja/fasteners" license=('Apache') -makedepends=('python-setuptools' 'python2-setuptools') -source=("https://github.com/harlowja/fasteners/archive/$pkgver.tar.gz") +depends=('python-six' 'python-monotonic') +makedepends=('python-setuptools') +source=("$pkgname-$pkgver.tar.gz::https://github.com/harlowja/fasteners/archive/$pkgver.tar.gz") sha512sums=('0c77c7061c8b76d0d018b07a3d33fc71701842f5b686456ebf31069694baa27a6cc47196267f24bc296078e7503ab0709fa28c9f0088c3cf777ea0e133bb5832') build() { @@ -17,16 +18,7 @@ python setup.py build } -package_python-fasteners() { - depends=('python-six' 'python-monotonic') - +package() { cd "$srcdir/fasteners-$pkgver" python setup.py install --optimize=1 --root="$pkgdir" } - -package_python2-fasteners() { - depends=('python2-six' 'python2-monotonic') - - cd "$srcdir/fasteners-$pkgver" - python2 setup.py install --optimize=1 --root="$pkgdir" -}
