mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
_name=abritamr
|
|
pkgname=python-abritamr
|
|
pkgver=1.0.19
|
|
pkgrel=2
|
|
pkgdesc="Running AMRFinderPlus for MDU"
|
|
arch=(any)
|
|
url="https://github.com/MDU-PHL/abritamr"
|
|
license=(None)
|
|
depends=('python-pandas' 'python-xlsxwriter')
|
|
makedepends=('python-setuptools' 'python-setuptools')
|
|
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/abritamr-1.0.19.tar.gz")
|
|
sha256sums=('a0571b3428186295ec27343fa4b648105be81a7fd871462a501c4c2bec43c335')
|
|
|
|
build() {
|
|
cd "$srcdir/abritamr-1.0.19"
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/abritamr-1.0.19"
|
|
python3 setup.py install --root=$pkgdir --optimize=1 --skip-build
|
|
|
|
# make sure we don't install any world-writable or root-readable-only files
|
|
# we shouldn't need to fix ownership as we extract tarballs as a non-root user
|
|
# https://github.com/pypa/setuptools/issues/1328
|
|
# https://github.com/LonamiWebs/Telethon/issues/1605
|
|
chmod u=rwX,go=rX -R "$pkgdir"
|
|
# make sure we don't install annoying files
|
|
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
|
rm -rf "$pkgdir/$_site_packages/tests/"
|
|
}
|
|
|