diff options
author | GI_Jack | 2023-05-13 19:13:17 -0700 |
---|---|---|
committer | GI_Jack | 2023-05-13 19:13:17 -0700 |
commit | 8fb6efccb85e16ab7f2752068c6d836197b3524e (patch) | |
tree | 7e627e00f558849a29ede951ae1f537d10dfcb44 /PKGBUILD | |
parent | 10d7e13d33382b989fb57dbeac1223c4bb923026 (diff) | |
download | aur-8fb6efccb85e16ab7f2752068c6d836197b3524e.tar.gz |
updated for modern packaging guidelines
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -5,25 +5,22 @@ pkgname='python-bs4' _pkgname='bs4' pkgver='0.0.1' -pkgrel=2 +pkgrel=3 pkgdesc='Beautiful Soup. bs4 name required by CrackMapExec trunk' arch=('any') url='https://pypi.python.org/pypi/bs4/' license=('custom:unknown') depends=('python' 'python-beautifulsoup4') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-wheel') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") sha256sums=('36ecea1fd7cc5c0c6e4a1ff075df26d50da647b75376626cc186e2212886dd3a') build() { - cd "$srcdir/${_pkgname}-$pkgver" - - python setup.py build + cd "$srcdir/${_pkgname}-$pkgver" + python -m build --wheel --no-isolation } package() { - cd "$srcdir/${_pkgname}-$pkgver" - - python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + cd "$srcdir/${_pkgname}-$pkgver" + python -m installer --destdir="${pkgdir}" dist/*.whl } - |