summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-06-08 22:43:11 +0200
committerxantares2015-06-08 22:43:11 +0200
commit24f9464635e982ffe67ecb1d94220149497fd31c (patch)
tree7f2dad4d7c028f83bde481eb35a2ca00cde2545b
downloadaur-24f9464635e982ffe67ecb1d94220149497fd31c.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD40
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..665c0f1075b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = mingw-w64-coin-or-osi
+ pkgdesc = COIN-OR Open Solver Interface (mingw-w64)
+ pkgver = 0.107.4
+ pkgrel = 1
+ url = https://projects.coin-or.org/Osi
+ arch = any
+ groups = coin-or
+ license = EPL
+ makedepends = mingw-w64-configure
+ depends = mingw-w64-coin-or-coinutils
+ options = staticlibs
+ options = !buildflags
+ options = !strip
+ source = http://www.coin-or.org/download/source/Osi/Osi-0.107.4.tgz
+ sha1sums = c1496835a98791a86eabadd8aead96719690d701
+
+pkgname = mingw-w64-coin-or-osi
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9909093ea3c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+pkgname=mingw-w64-coin-or-osi
+pkgver=0.107.4
+pkgrel=1
+pkgdesc="COIN-OR Open Solver Interface (mingw-w64)"
+arch=('any')
+url="https://projects.coin-or.org/Osi"
+license=('EPL')
+groups=('coin-or')
+depends=('mingw-w64-coin-or-coinutils')
+makedepends=('mingw-w64-configure')
+options=('staticlibs' '!buildflags' '!strip')
+source=("http://www.coin-or.org/download/source/Osi/Osi-${pkgver}.tgz")
+sha1sums=('c1496835a98791a86eabadd8aead96719690d701')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd Osi-$pkgver
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ COIN_SKIP_PROJECTS="Sample" \
+ ${_arch}-configure \
+ --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"/Osi-$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
+}