summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-06-08 22:50:49 +0200
committerxantares2015-06-08 22:50:49 +0200
commit6c799cf9bcd68817b362c3c6cfe4b601e5bbafeb (patch)
tree7564ccb611581e39961fc3038179696c735ce70c
downloadaur-6c799cf9bcd68817b362c3c6cfe4b601e5bbafeb.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD42
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e6b9490c27c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = mingw-w64-hmat-oss
+ pkgdesc = A hierarchical matrix C/C++ library (mingw-w64)
+ pkgver = 1.0.7
+ pkgrel = 1
+ url = https://github.com/jeromerobert/hmat-oss
+ arch = any
+ license = GPL
+ makedepends = mingw-w64-cmake
+ depends = mingw-w64-cblas
+ depends = mingw-w64-lapack
+ options = !buildflags
+ options = staticlibs
+ options = !strip
+ source = https://github.com/jeromerobert/hmat-oss/archive/1.0.7.tar.gz
+ md5sums = 9317e4cc96686798127a51779dc02021
+
+pkgname = mingw-w64-hmat-oss
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b90ef5fd8c2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+pkgname=mingw-w64-hmat-oss
+pkgver=1.0.7
+pkgrel=1
+pkgdesc="A hierarchical matrix C/C++ library (mingw-w64)"
+license=('GPL')
+arch=('any')
+url="https://github.com/jeromerobert/hmat-oss"
+depends=('mingw-w64-cblas' 'mingw-w64-lapack')
+makedepends=('mingw-w64-cmake')
+options=('!buildflags' 'staticlibs' '!strip')
+source=("https://github.com/jeromerobert/hmat-oss/archive/${pkgver}.tar.gz")
+md5sums=('9317e4cc96686798127a51779dc02021')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd "$srcdir/hmat-oss-${pkgver}"
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch}-static && pushd build-${_arch}-static
+ ${_arch}-cmake \
+ -DBUILD_SHARED_LIBS=OFF \
+ ..
+ make
+ popd
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-cmake \
+ ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "$srcdir/hmat-oss-${pkgver}/build-${_arch}-static"
+ make DESTDIR="$pkgdir" install
+ cd "$srcdir/hmat-oss-${pkgver}/build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ done
+}