summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-06-08 22:39:38 +0200
committerxantares2015-06-08 22:39:38 +0200
commit2af43eb45942a7a0aeebcee7cbed58c5e3e33f6d (patch)
tree2a6cc00064f85fce5e8caaa7d63a006ddec53876
downloadaur-2af43eb45942a7a0aeebcee7cbed58c5e3e33f6d.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD47
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..9b1ff5fcbbe3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = mingw-w64-coin-or-cgl
+ pkgdesc = COIN-OR Cut Generation Library (mingw-w64)
+ pkgver = 0.59.4
+ pkgrel = 1
+ url = https://projects.coin-or.org/Cgl
+ arch = any
+ groups = coin-or
+ license = EPL
+ makedepends = mingw-w64-configure
+ depends = mingw-w64-coin-or-clp
+ options = staticlibs
+ options = !buildflags
+ options = !strip
+ source = http://www.coin-or.org/download/source/Cgl/Cgl-0.59.4.tgz
+ sha1sums = ee8d228882b9de800bd5ff952e7736e988c2dc21
+
+pkgname = mingw-w64-coin-or-cgl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..7f0195935b28
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+
+pkgname=mingw-w64-coin-or-cgl
+pkgver=0.59.4
+pkgrel=1
+pkgdesc="COIN-OR Cut Generation Library (mingw-w64)"
+arch=('any')
+url="https://projects.coin-or.org/Cgl"
+license=('EPL')
+groups=('coin-or')
+depends=('mingw-w64-coin-or-clp')
+makedepends=('mingw-w64-configure')
+options=('staticlibs' '!buildflags' '!strip')
+source=("http://www.coin-or.org/download/source/Cgl/Cgl-${pkgver}.tgz")
+sha1sums=('ee8d228882b9de800bd5ff952e7736e988c2dc21')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd Cgl-$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-coinutils-lib="$(${_arch}-pkg-config --libs coinutils)" \
+ --with-coinutils-incdir="/usr/${_arch}/include/coin/" \
+ --with-clp-lib="$(${_arch}-pkg-config --libs clp)" \
+ --with-clp-incdir="/usr/${_arch}/include/coin/" \
+ -C
+ make
+ popd
+ done
+}
+
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "$srcdir"/Cgl-$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
+}