summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2019-09-06 10:27:10 +0200
committerMichel Zou2019-09-06 10:27:10 +0200
commit81aa312d6d1664950f2af764b6532b6e89d1e55e (patch)
tree85d3f037ca1e5042dd8bcff74400dc496a539513
parent96665d58ece7a706d5bdb5bcb9ca205d71fc454d (diff)
downloadaur-81aa312d6d1664950f2af764b6532b6e89d1e55e.tar.gz
pass_all
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 518048d8827..b5a3e32cfbf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,7 +6,7 @@ pkgbase = mingw-w64-coin-or-osi
arch = any
groups = coin-or
license = EPL
- makedepends = mingw-w64-gcc
+ makedepends = mingw-w64-configure
depends = mingw-w64-coin-or-coinutils
options = !buildflags
options = !strip
diff --git a/PKGBUILD b/PKGBUILD
index d49739a5ad1..6ba3f16d4dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,3 @@
-
pkgname=mingw-w64-coin-or-osi
pkgver=0.108.5
pkgrel=1
@@ -8,7 +7,7 @@ url="https://projects.coin-or.org/Osi"
license=(EPL)
groups=(coin-or)
depends=(mingw-w64-coin-or-coinutils)
-makedepends=(mingw-w64-gcc)
+makedepends=(mingw-w64-configure)
options=('!buildflags' '!strip' 'staticlibs')
source=("https://www.coin-or.org/download/source/Osi/Osi-${pkgver}.tgz")
sha256sums=('8efabdb3d5c89837d73fa6f9e7b764dce7450c579037964b64a996757f4d7d2c')
@@ -20,9 +19,10 @@ build() {
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
COIN_SKIP_PROJECTS="Sample" \
- ${_arch}-configure --enable-dependency-linking \
- --with-coinutils-lib="$(${_arch}-pkg-config --libs coinutils)" \
- --with-coinutils-incdir="/usr/${_arch}/include/coin/" ..
+ ${_arch}-configure \
+ --with-coinutils-lib="$(${_arch}-pkg-config --libs coinutils)" \
+ --with-coinutils-incdir="/usr/${_arch}/include/coin/" \
+ lt_cv_deplibs_check_method=pass_all ..
make
popd
done
@@ -34,5 +34,7 @@ package() {
PKG_CONFIG_PATH_CUSTOM="$pkgdir"/usr/${_arch}/lib/pkgconfig/ \
make DESTDIR="$pkgdir" install
rm -r "$pkgdir"/usr/${_arch}/share
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
done
}