Commit 19c408a6 authored by Oleg Titov's avatar Oleg Titov Committed by Leo
Browse files

testing/py3-blis: enable x86, do groundwork for enabling aarch64

parent c48f3f25
......@@ -2,10 +2,10 @@
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-blis
pkgver=0.4.1
pkgrel=0
pkgrel=1
pkgdesc="Fast matrix-multiplication as a self-contained Python library"
url="https://github.com/explosion/cython-blis"
arch="x86_64"
arch="x86_64 x86"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools cython"
......@@ -14,14 +14,17 @@ subpackages="$pkgname-doc"
source="blis-$pkgver.tar.gz::https://github.com/explosion/cython-blis/archive/v$pkgver.tar.gz"
builddir="$srcdir/cython-blis-$pkgver"
case "$CARCH" in
aarch64)
export BLIS_ARCH=cortex53
;;
esac
prepare() {
case "$CARCH" in
x86_64) BLIS_ARCH=x86_64 ;;
x86) BLIS_ARCH=generic ;;
aarch64) BLIS_ARCH=cortexa53 ;;
esac
export BLIS_ARCH
}
build() {
python3 setup.py build
python3 setup.py build_ext --inplace
}
check() {
......@@ -35,7 +38,7 @@ check() {
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
sha512sums="7085183f477d9da383b8ff4e6cb2d067c4dcde41481b4a634258ec637fe9c7b75dd0f0bbb59a4da75b31a84795d1a053b7fcc8bcf5be6174b529f8e047067e2f blis-0.4.1.tar.gz"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment