summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichel Zou2018-08-03 18:29:48 +0200
committerMichel Zou2018-08-03 18:29:48 +0200
commitbbde126cffd007ee0ffae1daef7a142bea7caa2b (patch)
tree43c499195acfb7fc9831edeb5d12b8cf406ded6b /PKGBUILD
parent8daefd82ef10a6e00ef6a99b74ae622641d52513 (diff)
downloadaur-mingw-w64-cminpack.tar.gz
gpl
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 9 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index af56ba58403..1189b920a61 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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