diff options
author | Michel Zou | 2018-08-03 18:29:48 +0200 |
---|---|---|
committer | Michel Zou | 2018-08-03 18:29:48 +0200 |
commit | bbde126cffd007ee0ffae1daef7a142bea7caa2b (patch) | |
tree | 43c499195acfb7fc9831edeb5d12b8cf406ded6b | |
parent | 8daefd82ef10a6e00ef6a99b74ae622641d52513 (diff) | |
download | aur-bbde126cffd007ee0ffae1daef7a142bea7caa2b.tar.gz |
gpl
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 11 insertions, 13 deletions
@@ -1,13 +1,10 @@ -# Generated by mksrcinfo v8 -# Fri Apr 7 18:47:24 UTC 2017 pkgbase = mingw-w64-cminpack pkgdesc = A C/C++ rewrite of the MINPACK software (mingw-w64) pkgver = 1.3.6 pkgrel = 1 url = http://devernay.free.fr/hacks/cminpack/cminpack.html arch = any - license = GPL - license = LGPL + license = BSD makedepends = mingw-w64-cmake depends = mingw-w64-crt depends = mingw-w64-cblas @@ -15,7 +12,7 @@ pkgbase = mingw-w64-cminpack options = staticlibs options = !strip source = http://devernay.free.fr/hacks/cminpack/cminpack-1.3.6.tar.gz - md5sums = 2c7f81105f94ea9268617a1748cc3506 + sha256sums = 3c07fd21308c96477a2c900032e21d937739c233ee273b4347a0d4a84a32d09f pkgname = mingw-w64-cminpack @@ -5,30 +5,31 @@ pkgrel=1 pkgdesc="A C/C++ rewrite of the MINPACK software (mingw-w64)" arch=('any') url='http://devernay.free.fr/hacks/cminpack/cminpack.html' -license=('GPL' 'LGPL') +license=('BSD') depends=('mingw-w64-crt' 'mingw-w64-cblas') makedepends=('mingw-w64-cmake') options=('!buildflags' 'staticlibs' '!strip') source=("http://devernay.free.fr/hacks/cminpack/cminpack-${pkgver}.tar.gz") -md5sums=('2c7f81105f94ea9268617a1748cc3506') +sha256sums=('3c07fd21308c96477a2c900032e21d937739c233ee273b4347a0d4a84a32d09f') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" -build() { +prepare () { cd $srcdir/cminpack-${pkgver} # https://github.com/devernay/cminpack/issues/12 sed -i "s|target_link_libraries(cminpack PUBLIC|target_link_libraries(cminpack PUBLIC cblas|g" CMakeLists.txt +} - for _arch in ${_architectures}; do +build() { + cd $srcdir/cminpack-${pkgver} + for _arch in ${_architectures}; do mkdir -p build-${_arch}-static && pushd build-${_arch}-static - ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release \ - -DCMINPACK_LIB_INSTALL_DIR=lib \ + ${_arch}-cmake -DCMINPACK_LIB_INSTALL_DIR=lib \ -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF .. make popd mkdir -p build-${_arch} && pushd build-${_arch} - ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release \ - -DCMINPACK_LIB_INSTALL_DIR=lib \ + ${_arch}-cmake -DCMINPACK_LIB_INSTALL_DIR=lib \ -DBUILD_EXAMPLES=OFF .. make popd |