diff options
author | AtomicFS | 2024-05-04 23:12:16 +0200 |
---|---|---|
committer | AtomicFS | 2024-05-04 23:12:16 +0200 |
commit | e83d9ffb7584a049ba0feaa123ff152692c6e206 (patch) | |
tree | f5fb6b0135bc503b0bfb7b9de955153e918e5f7b /PKGBUILD | |
parent | fd12d07d5fc8b6e3d043b4cf90ca2360473e449a (diff) | |
download | aur-e83d9ffb7584a049ba0feaa123ff152692c6e206.tar.gz |
chore: cleanup
Signed-off-by: AtomicFS <vojtech_vesely@white-hat-hacker.icu>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 20 insertions, 7 deletions
@@ -1,17 +1,30 @@ -# Maintainer: atomicfs +# Maintainer: atomicfs <https://aur.archlinux.org/account/atomicfs> + pkgname=python-blkinfo pkgver=0.2.0 pkgrel=2 pkgdesc="A python library to list information about all available or the specified block devices" arch=('any') url="https://github.com/grinrag/blkinfo" -license=('GPL3') -depends=('python' 'util-linux') -_pkgname=blkinfo -source=("${pkgname}::git+https://github.com/genalt/${_pkgname}#tag=${pkgver}") +license=('GPL-3.0-only') +depends=( + 'python' + 'util-linux' +) +makedepends=( + 'python-build' + 'python-installer' + 'python-wheel' +) +source=("${pkgname}::git+${url}#tag=${pkgver}") sha256sums=('SKIP') +build() { + cd "${srcdir}/${pkgname}" + python -m build --wheel --no-isolation +} + package() { - cd "${srcdir}/${pkgname}" - python setup.py install --root="${pkgdir}" --optimize=1 + cd "${srcdir}/${pkgname}" + python -m installer --destdir="${pkgdir}" dist/*.whl } |