summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorValerii Huz2020-03-06 12:12:00 +0200
committerValerii Huz2020-03-06 12:12:00 +0200
commit141a05fbfb6f20c01a4fd261ec0c77fa64bd1581 (patch)
treecbdef591e4d7c74efcfb949db4cb7239fa22480e /PKGBUILD
downloadaur-141a05fbfb6f20c01a4fd261ec0c77fa64bd1581.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9585eac390c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Valerii Huz <ghotrix _AT_ gmail _DOT_ com>
+pkgname=openblas-cblas-git
+_pkgname=OpenBLAS
+pkgver=1
+pkgrel=1
+pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD "
+arch=('any')
+url="http://www.openblas.net/"
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('perl' 'gcc-fortran' 'git')
+provides=('blas=3.5.0' 'openblas' 'cblas')
+conflicts=('blas' 'openblas' 'cblas')
+options=(!makeflags !emptydirs)
+source=($_pkgname::git+https://github.com/xianyi/OpenBLAS.git)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ make PREFIX="$pkgdir/usr" install
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: