Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  1. ant32 revised this gist . 1 changed file with 1 addition and 2 deletions.
    View
    3  PKGBUILD
    @@ -1,6 +1,5 @@
    # Maintainer: Julien Schueller <julien.schueller@gmail.com>
    -pkgbase=lapack
    pkgname=mingw-w64-lapack
    pkgver=3.4.2
    pkgrel=1
    @@ -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"
  2. ant32 created this gist .
    View
    47 PKGBUILD
    @@ -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.