diff options
author | xantares | 2015-06-08 22:41:18 +0200 |
---|---|---|
committer | xantares | 2015-06-08 22:41:18 +0200 |
commit | c5f79061695303475d5f30a2ac6a50c4f972eb3a (patch) | |
tree | 620e3aa17ee03b8aa89161941eff9e831d9709d3 /PKGBUILD | |
download | aur-c5f79061695303475d5f30a2ac6a50c4f972eb3a.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..06b2cfa931a0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ + +pkgname=mingw-w64-coin-or-coinutils +pkgver=2.10.7 +pkgrel=1 +pkgdesc="COIN-OR collection of utility classes (mingw-w64)" +arch=('any') +url="https://projects.coin-or.org/CoinUtils" +license=('EPL') +groups=('coin-or') +depends=('mingw-w64-bzip2' 'mingw-w64-zlib' 'mingw-w64-lapack' 'mingw-w64-glpk') +makedepends=('mingw-w64-configure') +options=('staticlibs' '!buildflags' '!strip') +source=("http://www.coin-or.org/download/source/CoinUtils/CoinUtils-${pkgver}.tgz") +sha1sums=('e02e2be9ace9335b625350a04496abae76386118') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + + +prepare() { + cd CoinUtils-$pkgver + # install missing header + sed -i "484i\ CoinRational.hpp \\\\" CoinUtils/src/Makefile.in +} + + +build() { + cd "$srcdir"/CoinUtils-$pkgver + #sed -i "70ilibCoinUtils_la_LIBADD = -lbz2 -lz -llapack -lblas" CoinUtils/src/Makefile.in + #sed -i "424ilibCoinUtils_la_LDFLAGS += -no-undefined" CoinUtils/src/Makefile.in + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure --with-blas-lib='-lblas' --with-lapack-lib='-llapack' --with-glpk-lib='-lglpk' --enable-dependency-linking + make + popd + done +} + + +package() { + for _arch in ${_architectures}; do + cd "$srcdir"/CoinUtils-$pkgver/build-${_arch} + PKG_CONFIG_PATH_CUSTOM="$pkgdir"/usr/${_arch}/lib/pkgconfig/ \ + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/${_arch}/share + #${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |