diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e1032127399e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Wed Apr 13 20:33:13 UTC 2016 +pkgbase = mingw-w64-armadillo + pkgdesc = C++ linear algebra library (mingw-w64) + pkgver = 6.700.4 + pkgrel = 1 + url = http://arma.sourceforge.net/ + arch = any + license = MPL 2.0 + makedepends = mingw-w64-cmake + makedepends = mingw-w64-boost + depends = mingw-w64-lapack + depends = mingw-w64-hdf5 + options = !strip + options = !buildflags + options = staticlibs + source = http://downloads.sourceforge.net/sourceforge/arma/armadillo-6.700.4.tar.gz + sha512sums = c0f7245e37a8ddd41ea81990cd015f0bdcb5980a2f8da174294794525dd8a6becb0c8a513992e692ac57b3466b0a9d50ce865b6832bc3d5a265fdd7244a62927 + +pkgname = mingw-w64-armadillo + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0891307674b0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ + +pkgname=mingw-w64-armadillo +pkgver=6.700.4 +pkgrel=1 +pkgdesc="C++ linear algebra library (mingw-w64)" +arch=('any') +url="http://arma.sourceforge.net/" +license=('MPL 2.0') +depends=('mingw-w64-lapack' 'mingw-w64-hdf5') +makedepends=('mingw-w64-cmake' 'mingw-w64-boost') +options=(!strip !buildflags staticlibs) +source=("http://downloads.sourceforge.net/sourceforge/arma/armadillo-$pkgver.tar.gz") +sha512sums=('c0f7245e37a8ddd41ea81990cd015f0bdcb5980a2f8da174294794525dd8a6becb0c8a513992e692ac57b3466b0a9d50ce865b6832bc3d5a265fdd7244a62927') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}/armadillo-$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}/armadillo-$pkgver/build-${_arch}-static" + make DESTDIR="${pkgdir}" install + cd "${srcdir}/armadillo-$pkgver/build-${_arch}" + make DESTDIR="${pkgdir}" install + ${_arch}-strip -g ${pkgdir}/usr/${_arch}/lib/*.a + ${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll + done +} + |