public
Created

  • Download Gist
ant32 revised this gist . 1 changed file with 1 addition and 2 deletions. View gist @ 8ef5738
PKGBUILD
3 
... 1 2 3 4 5 6 ... 1 2   3 4 5
@@ -1,6 +1,5 @@
# Maintainer: Julien Schueller <julien.schueller@gmail.com>
-pkgbase=lapack
pkgname=mingw-w64-lapack
pkgver=3.4.2
pkgrel=1
... 11 12 13 14   15 16 17 ... 10 11 12   13 14 15 16
@@ -11,7 +10,7 @@ makedepends=('mingw-w64-gcc' 'cmake')
options=('!buildflags' '!strip')
license=('LGPL')
url="http://www.netlib.org/lapack"
-source=("http://www.netlib.org/${pkgbase}/${pkgbase}-${pkgver}.tgz")
+source=("http://www.netlib.org/lapack/lapack-${pkgver}.tgz")
sha1sums=('93a6e4e6639aaf00571d53a580ddc415416e868b')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
ant32 created this gist . View gist @ 0d923aa
PKGBUILD
47 
...                                                                                               ... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
@@ -0,0 +1,47 @@
+# Maintainer: Julien Schueller <julien.schueller@gmail.com>
+
+pkgbase=lapack
+pkgname=mingw-w64-lapack
+pkgver=3.4.2
+pkgrel=1
+arch=(any)
+pkgdesc="Linear Algebra PACKage (mingw-w64)"
+depends=('mingw-w64-crt')
+makedepends=('mingw-w64-gcc' 'cmake')
+options=('!buildflags' '!strip')
+license=('LGPL')
+url="http://www.netlib.org/lapack"
+source=("http://www.netlib.org/${pkgbase}/${pkgbase}-${pkgver}.tgz")
+sha1sums=('93a6e4e6639aaf00571d53a580ddc415416e868b')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build()
+{
+ cd ${srcdir}/lapack-${pkgver}
+ for _arch in ${_architectures}; do
+ unset LDFLAGS CPPFLAGS
+ mkdir "build-${_arch}" && pushd "build-${_arch}"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr/${_arch} \
+ -DCMAKE_SYSTEM_NAME=Windows \
+ -DCMAKE_Fortran_COMPILER=${_arch}-gfortran \
+ -DCMAKE_RC_COMPILER=/usr/bin/${_arch}-windres \
+ -DBUILD_SHARED_LIBS=ON \
+ ..
+ make
+ popd
+ done
+
+}
+
+package()
+{
+ for _arch in ${_architectures}; do
+ cd ${srcdir}/lapack-${pkgver}/build-${_arch}
+ make install DESTDIR=${pkgdir}
+ ${_arch}-strip -x -g $pkgdir/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g $pkgdir/usr/${_arch}/lib/*.a
+ done
+}
Something went wrong with that request. Please try again.