diff options
author | Carlos Aznarán Laos | 2021-07-16 23:40:31 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2021-07-16 23:40:31 -0500 |
commit | 4150998c66463692c760a8cb93d2217b83d9ecb0 (patch) | |
tree | f1b3e54041fb18e5509e245709b4b9a4ac99bed1 | |
download | aur-4150998c66463692c760a8cb93d2217b83d9ecb0.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 32 |
3 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7295a92391a6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-npx + pkgdesc = Some useful extensions for NumPy + pkgver = 0.0.17 + pkgrel = 1 + url = https://github.com/nschloe/npx + arch = x86_64 + license = custom + checkdepends = python-tox + makedepends = python-setuptools + depends = python-numpy + source = python-npx-0.0.17.tar.gz::https://github.com/nschloe/npx/archive/v0.0.17.tar.gz + sha512sums = 9cbba63aa426ed216e8a679efb2986951419166339ca1eb090945d790a236b189f6334c52bb7eb6f4e1c6d87f357bfc8dcf1407e6b1205babfb58377718477aa + +pkgname = python-npx diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f59ec20aabf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..83b374aee67e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> +_base=npx +pkgname=python-${_base} +pkgdesc="Some useful extensions for NumPy" +pkgver=0.0.17 +pkgrel=1 +arch=('x86_64') +url="https://github.com/nschloe/${_base}" +license=('custom') +depends=(python-numpy) +makedepends=(python-setuptools) +checkdepends=(python-tox) +source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) +sha512sums=('9cbba63aa426ed216e8a679efb2986951419166339ca1eb090945d790a236b189f6334c52bb7eb6f4e1c6d87f357bfc8dcf1407e6b1205babfb58377718477aa') + +build() { + cd "${_base}-${pkgver}" + python -c "from setuptools import setup; setup();" build +} + +check() { + cd "${_base}-${pkgver}" + tox -e py$(python -c "import sys; print(sys.version[:3].replace('.', ''))") +} + +package() { + cd "${_base}-${pkgver}" + export PYTHONHASHSEED=0 + python -c "from setuptools import setup; setup();" install --root="${pkgdir}" --optimize=1 + rm -r "${pkgdir}$(python -c "import site; print(site.getsitepackages()[0])")/${_base}/__pycache__" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |