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=arvados-cwl-runner
|
|
pkgname=python-arvados-cwl-runner
|
|
pkgver=3.0.0
|
|
pkgrel=2
|
|
pkgdesc="Arvados Common Workflow Language runner"
|
|
arch=(any)
|
|
url="https://arvados.org"
|
|
license=(Apache-2.0)
|
|
depends=('python')
|
|
makedepends=('python-setuptools' 'python-setuptools')
|
|
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/arvados-cwl-runner-3.0.0.tar.gz")
|
|
sha256sums=('91287bc3e2165afeca53b7e3a28aeeb8bbbe621dc3640499488c065039ff45ed')
|
|
|
|
build() {
|
|
cd "$srcdir/arvados-cwl-runner-3.0.0"
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/arvados-cwl-runner-3.0.0"
|
|
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/"
|
|
}
|
|
|