diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -2,7 +2,7 @@ pkgname=python-pywhat pkgver=5.1.0 -pkgrel=3 +pkgrel=4 pkgdesc="Identify emails, IP addresses and more" arch=("any") url="https://github.com/bee-san/pyWhat" @@ -13,8 +13,8 @@ depends=( "python-rich" ) makedepends=( - "python-setuptools" "python-poetry" + "python-installer" ) optdepends=( "python-orjson: faster JSON serialization and deserialization" @@ -25,15 +25,10 @@ sha256sums=("8a6f2b3060f5ce9808802b9ca3eaf91e19c932e4eaa03a4c2e5255d0baad85c4") build() { cd "$srcdir/pywhat-$pkgver" poetry build - - cd dist - tar xf "pywhat-$pkgver.tar.gz" - cd "pywhat-$pkgver" - python setup.py build } package() { - cd "$srcdir/pywhat-$pkgver/dist/pywhat-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + cd "$srcdir/pywhat-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 "$srcdir/pywhat-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |