summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsL1pKn072019-04-29 22:38:21 +0200
committersL1pKn072019-04-29 22:38:21 +0200
commit7e7b6345a511b05fe714285bd8bbfdae258b2fe4 (patch)
treeb2c6cdf07018c36f89b66211bce1d507612f7df4
parent5a15ff8d84da1a23dd13aa56887ea9736003a9eb (diff)
downloadaur-7e7b6345a511b05fe714285bd8bbfdae258b2fe4.tar.gz
Switch to cmake build system
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD41
2 files changed, 14 insertions, 29 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0dcb71ae758..d128d959eac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Mon Apr 29 20:27:44 UTC 2019
+# Mon Apr 29 20:38:05 UTC 2019
pkgbase = libopenblas
pkgdesc = An optimized BLAS library based on GotoBLAS2 1.13 BSD. (Designed for can be installed side by side with Blas)
pkgver = 0.3.6
diff --git a/PKGBUILD b/PKGBUILD
index 8af5bfe6505..e737fe117d9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,40 +17,25 @@ source=("OpenBLAS-v${pkgver}.tar.gz::http://github.com/xianyi/OpenBLAS/archive/v
sha256sums=('e64c8fe083832ffbc1459ab6c72f71d53afd3b36e8497c922a15a06b72e9002f')
options=('!emptydirs')
-# prepare() {
-# mkdir -p build
-# }
+prepare() {
+ mkdir -p build
+}
build() {
-# cd build
-# cmake ../"OpenBLAS-${pkgver}" \
-# -DCMAKE_BUILD_TYPE=None \
-# -DCMAKE_INSTALL_PREFIX=/usr \
-# -DCMAKE_INSTALL_LIBDIR=lib \
-# -DCMAKE_INSTALL_INCLUDEDIR=include/openblas
-#
-# make
-
- cd "OpenBLAS-${pkgver}"
-
- make \
- libs \
- netlib \
- shared
-
-
+ cd build
+ cmake ../"OpenBLAS-${pkgver}" \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_INSTALL_INCLUDEDIR=include/openblas \
+ -DBUILD_SHARED_LIBS=ON
+
+ make
}
package() {
-# make -C build DESTDIR="${pkgdir}" install
+ make -C build DESTDIR="${pkgdir}" install
cd "OpenBLAS-${pkgver}"
- make \
- PREFIX=/usr \
- OPENBLAS_INCLUDE_DIR="\$(PREFIX)/include/openblas" \
- DESTDIR="${pkgdir}" \
- install
-
-# install -Dm644 "OpenBLAS-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}