diff options
author | Kirill Isakov | 2023-07-07 23:01:33 +0600 |
---|---|---|
committer | Kirill Isakov | 2023-07-07 23:01:33 +0600 |
commit | 5f58952c80c230216e18047282e9b180ad657be3 (patch) | |
tree | cc6cb7a374030ebd445cd94aff94a8edb9b490a2 /PKGBUILD | |
parent | afbf5612159577ad8fb7e6a2a1482362fb87b768 (diff) | |
download | aur-python-cymruwhois.tar.gz |
upgpkg: python-cymruwhois 1.6-3
Remove Python 2 support.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 12 insertions, 22 deletions
@@ -1,31 +1,21 @@ -# Maintainer: Karol Babioch <karol@babioch.de> +# Maintainer: tarball <bootctl@gmail.com> +# Contributor: Karol Babioch <karol@babioch.de> -pkgname=('python-cymruwhois' 'python2-cymruwhois') -_gitname='python-cymruwhois' +pkgname='python-cymruwhois' pkgver=1.6 -pkgrel=2 +pkgrel=3 pkgdesc='Client for the whois.cymru.com service' arch=('any') -url='https://pythonhosted.org/cymruwhois/' +url='https://pythonhosted.org/cymruwhois' license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools') -source=("$_gitname::git+https://github.com/JustinAzoff/$_gitname#tag=$pkgver") -sha256sums=('SKIP') +depends=('python') +makedepends=('python-setuptools') +source=("$pkgname-$pkgver.tar.gz::https://github.com/JustinAzoff/$pkgname/archive/refs/tags/$pkgver.tar.gz") +sha256sums=('357bd4beaab4c857062984cfd6b85606e3ff6b39e6e5420f428961ab2a9f2434') -package_python-cymruwhois() { - depends=('python') - cd "$srcdir/$_gitname" +package() { + cd "$srcdir/$pkgname-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 LICENSE* "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - -package_python2-cymruwhois() { - depends=('python2') - cd "$srcdir/$_gitname" - - python2 setup.py install --root="$pkgdir/" --optimize=1 - mv "$pkgdir/usr/bin/cymruwhois" "$pkgdir/usr/bin/cymruwhois2" - install -Dm644 LICENSE* "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - |