python-mappy: modify PKGBUILD to use python-build

This commit is contained in:
bipin kumar 2023-04-30 09:59:32 +05:30
parent a589d40c76
commit 02671b62c0
No known key found for this signature in database
GPG key ID: C67233497C15E476

View file

@ -3,7 +3,7 @@
pkgname=python-mappy
_source=minimap2
pkgver=2.26
pkgrel=1
pkgrel=2
pkgdesc="Python interface to minimap2, a fast and accurate C program to align genomic and transcribe nucleotide sequences"
arch=('x86_64')
url="https://github.com/lh3/minimap2"
@ -18,6 +18,8 @@ makedepends=(
'python-setuptools'
'cython'
'python-wheel'
'python-build'
'python-installer'
)
options=(!emptydirs)
@ -31,11 +33,11 @@ prepare() {
build() {
cd ${_source}-${pkgver}
python setup.py build
python -m build --wheel --no-isolation
}
package() {
cd ${_source}-${pkgver}
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "LICENSE.txt" "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}