diff options
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" -} - |