diff options
author | xantares | 2015-06-08 22:39:02 +0200 |
---|---|---|
committer | xantares | 2015-06-08 22:39:02 +0200 |
commit | 6fe7cfc3a348a604fb1a029a18624cc73cf6aa4c (patch) | |
tree | 76df77c382d447cb6d2afcaf2b2e93474ed8e418 | |
download | aur-6fe7cfc3a348a604fb1a029a18624cc73cf6aa4c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8531c6e3bc95 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mingw-w64-coin-or-cbc + pkgdesc = COIN-OR branch-and-cut mixed integer programming solver (mingw-w64) + pkgver = 2.9.4 + pkgrel = 1 + url = https://projects.coin-or.org/Cbc + arch = any + groups = coin-or + license = EPL + makedepends = mingw-w64-configure + depends = mingw-w64-coin-or-cgl + options = staticlibs + options = !buildflags + options = !strip + source = http://www.coin-or.org/download/source/Cbc/Cbc-2.9.4.tgz + sha1sums = d937d6af1ee8838d44659ebd4cf7bbb1b20372ce + +pkgname = mingw-w64-coin-or-cbc + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3336381fe597 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ + +pkgname=mingw-w64-coin-or-cbc +pkgver=2.9.4 +pkgrel=1 +pkgdesc="COIN-OR branch-and-cut mixed integer programming solver (mingw-w64)" +arch=('any') +url="https://projects.coin-or.org/Cbc" +license=('EPL') +groups=('coin-or') +depends=('mingw-w64-coin-or-cgl') +makedepends=('mingw-w64-configure') +options=('staticlibs' '!buildflags' '!strip') +source=("http://www.coin-or.org/download/source/Cbc/Cbc-${pkgver}.tgz") +sha1sums=('d937d6af1ee8838d44659ebd4cf7bbb1b20372ce') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd Cbc-$pkgver + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + COIN_SKIP_PROJECTS="Sample" \ + ${_arch}-configure \ + --with-osi-lib="$(${_arch}-pkg-config --libs osi)" \ + --with-osi-incdir="/usr/${_arch}/include/coin/" \ + --with-clp-lib="$(${_arch}-pkg-config --libs clp)" \ + --with-clp-incdir="/usr/${_arch}/include/coin/" \ + --with-cgl-lib="$(${_arch}-pkg-config --libs cgl)" \ + --with-cgl-incdir="/usr/${_arch}/include/coin/" \ + --with-coinutils-lib="$(${_arch}-pkg-config --libs coinutils)" \ + --with-coinutils-incdir="/usr/${_arch}/include/coin/" -C + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir"/Cbc-$pkgver/build-${_arch} + PKG_CONFIG_PATH_CUSTOM="$pkgdir"/usr/${_arch}/lib/pkgconfig/ \ + make DESTDIR="$pkgdir"/ install + rm -r "$pkgdir"/usr/${_arch}/share + rm "$pkgdir"/usr/${_arch}/bin/*.exe + #${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |