diff options
author | 0b100100 | 2021-10-19 18:49:52 +0200 |
---|---|---|
committer | 0b100100 | 2021-10-19 18:49:52 +0200 |
commit | 8d4a031d103b18611d495fef817d191a54d372af (patch) | |
tree | b341228288a6d64f8221453cafd0544e7e97805d /PKGBUILD | |
parent | 11385b425856067252d8faa19d46fe9f2f1bc7f1 (diff) | |
download | aur-8d4a031d103b18611d495fef817d191a54d372af.tar.gz |
Remove own introduced variable based on the package etiquette
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -2,8 +2,7 @@ # Contributor: Lex Black <autumn-wind@web.de> # Contributor: Eric Toombs -_pkgname=python-binance -pkgname=$_pkgname-git +pkgname=python-binance-git pkgver=1.0.15.r2.g217f1e2 pkgrel=1 pkgdesc="An unofficial Python wrapper for the Binance exchange REST API" @@ -14,28 +13,28 @@ depends=('python' 'python-aiohttp' 'python-dateparser' 'python-requests' 'python-ujson' 'python-websockets=9.1') makedepends=('git' 'python-setuptools') checkdepends=('python-pytest' 'python-requests-mock') -provides=("$_pkgname") -conflicts=("$_pkgname") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") source=("git+$url.git") sha512sums=('SKIP') pkgver() { - cd $_pkgname + cd ${pkgname%-git} git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd $_pkgname + cd ${pkgname%-git} python setup.py build } check() { - cd $_pkgname + cd ${pkgname%-git} pytest } package() { - cd $_pkgname + cd ${pkgname%-git} python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$_pkgname + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname%-git} } |