diff options
author | Chris Brendel | 2018-10-30 02:33:37 -0700 |
---|---|---|
committer | Chris Brendel | 2018-10-30 02:33:37 -0700 |
commit | 184a59c3f607d5dec7520b3aaf8b003fb5337185 (patch) | |
tree | ecd6392857ef34b3dafc343c6902db0d632e2573 | |
download | aur-184a59c3f607d5dec7520b3aaf8b003fb5337185.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4430bbe67363 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-blis + pkgdesc = The Blis linear algebra routines as a self-contained Python C-extension + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/explosion/cython-blis + arch = x86_64 + license = MIT + makedepends = python-setuptools + makedepends = python-wheel + depends = cython + depends = python-numpy + depends = python-pytest + depends = python-hypothesis + source = python-blis-0.1.0.tar.gz::https://github.com/explosion/cython-blis/archive/v0.1.0.tar.gz + md5sums = b36cf1c713d10473be866a16bbe733e3 + +pkgname = python-blis + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eac22137f32a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Chris Brendel <cdbrendel@gmail.com> +# Python package author: Matthew Honnibal <matt@explosion.ai> +pkgname=python-blis +_origpkgname=cython-blis +pkgver=0.1.0 +pkgrel=1 +pkgdesc="The Blis linear algebra routines as a self-contained Python C-extension" +arch=("x86_64") +url="https://github.com/explosion/cython-blis" +license=("MIT") +depends=("cython" "python-numpy" "python-pytest" "python-hypothesis") +makedepends=("python-setuptools" "python-wheel") +source=("$pkgname-$pkgver.tar.gz::https://github.com/explosion/cython-blis/archive/v$pkgver.tar.gz") +md5sums=('b36cf1c713d10473be866a16bbe733e3') + +prepare() { + # Change gcc-6 to gcc to avoid that dep. I originally made a patch here, + # but there is some idiosycracy in Matt's environ that the script seems + # to require to build properly, and I can't figure out which env it is. + sed -i -e 's/gcc-6/gcc/g' "$_origpkgname-$pkgver/blis/_src/make/linux-x86_64.jsonl" +} + +package() { + cd "$_origpkgname-$pkgver" + export BLIS_COMPILER="gcc" + export BLIS_ARCH="x86_64" + python setup.py install --root="${pkgdir}/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |