python-ngs: add version 3.0.5

This commit is contained in:
bipin kumar 2023-05-12 00:18:06 +05:30
parent 5e971f59ea
commit 3d9875cabd
No known key found for this signature in database
GPG key ID: C67233497C15E476
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,33 @@
# Maintainer: Bipin Kumar <kbipinkumar@pm.me>
pkgname=python-ngs
_source=sra-tools
pkgver=3.0.5
pkgrel=1
pkgdesc="python module for NCBI NGS Language Bindings"
url="https://github.com/ncbi/sra-tools"
depends=(
'python'
)
makedepends=(
'python-setuptools'
'python-wheel'
'python-build'
'python-installer'
)
license=('custom: Public Domain')
arch=('any')
source=("$_source-$pkgver.tar.gz::https://github.com/ncbi/sra-tools/archive/refs/tags/$pkgver.tar.gz")
options=(!strip) # strip isn't useful for python files and takes forever
sha256sums=('6dca9889ca9cfa83e9ce1c39bf7ae5654576fc79c4f608e902272a49573a05e0')
build() {
cd ${srcdir}/"$_source-$pkgver"/ngs/ngs-python
python -m build --wheel --no-isolation
}
package() {
cd ${srcdir}/"$_source-$pkgver"/ngs/ngs-python
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 ../../LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}

View file

@ -0,0 +1,15 @@
build_prefix: extra-x86_64
maintainers:
- github: kbipinkumar
email: kbipinkumar@pm.me
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: ncbi/sra-tools
use_max_tag: true
- alias: python