diff options
author | Karol Babioch | 2018-02-07 17:30:44 +0100 |
---|---|---|
committer | Karol Babioch | 2018-02-07 17:30:44 +0100 |
commit | d9530eec7783c0f2df6ec0086e89f0b7cdfdc0f1 (patch) | |
tree | fc7af007dffd413f37122794f6b51983f0fa554e | |
parent | 6453c237839941520131a605226a3f6fac5b6e07 (diff) | |
download | aur-d9530eec7783c0f2df6ec0086e89f0b7cdfdc0f1.tar.gz |
Cleanup PKGBUILD
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,7 @@ # Maintainer: Karol Babioch <karol@babioch.de> pkgname=('python-cymruwhois' 'python2-cymruwhois') -_pkgname='python-cymruwhois' +_gitname='python-cymruwhois' pkgver=1.6 pkgrel=1 pkgdesc='Client for the whois.cymru.com service' @@ -9,19 +9,21 @@ arch=('any') url='https://pythonhosted.org/cymruwhois/' license=('MIT') makedepends=('python-setuptools' 'python2-setuptools') -source=("git+https://github.com/JustinAzoff/$_pkgname#tag=$pkgver") +source=("$_gitname::git+https://github.com/JustinAzoff/$_gitname#tag=$pkgver") sha256sums=('SKIP') package_python-cymruwhois() { depends=('python') - cd "$srcdir/$_pkgname" + cd "$srcdir/$_gitname" + python setup.py install --root="$pkgdir/" --optimize=1 install -Dm644 LICENSE* "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_python2-cymruwhois() { depends=('python2') - cd "$srcdir/$_pkgname" + cd "$srcdir/$_gitname" + python2 setup.py install --root="$pkgdir/" --optimize=1 install -Dm644 LICENSE* "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |