diff --git a/BioArchLinux/python-ngs/PKGBUILD b/BioArchLinux/python-ngs/PKGBUILD new file mode 100644 index 0000000000..4f4e68cacb --- /dev/null +++ b/BioArchLinux/python-ngs/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Bipin Kumar + +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 +} diff --git a/BioArchLinux/python-ngs/lilac.yaml b/BioArchLinux/python-ngs/lilac.yaml new file mode 100644 index 0000000000..ad227fd771 --- /dev/null +++ b/BioArchLinux/python-ngs/lilac.yaml @@ -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 \ No newline at end of file