blob: 35f904b71f25a5cdf606731479a1d4c01f7d05e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
pkgname=mingw-w64-coin-or-cgl
pkgver=0.60.9
pkgrel=1
pkgdesc="COIN-OR Cut Generation Library (mingw-w64)"
arch=('any')
url="https://projects.coin-or.org/Cgl"
license=('EPL')
groups=('mingw-w64-coin-or')
depends=('mingw-w64-coin-or-clp')
makedepends=('mingw-w64-configure')
options=('staticlibs' '!buildflags' '!strip')
source=(https://github.com/coin-or/Cgl/archive/refs/tags/releases/$pkgver.tar.gz)
sha256sums=('558421ccd6aa91d6922dd1baa04e37aa4c75ba0472118dc11779e5d6a19bfb38')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd Cgl-releases-$pkgver
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
COIN_SKIP_PROJECTS="Sample" \
LIBS="-lssp" ${_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/" \
lt_cv_deplibs_check_method=pass_all ..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir"/Cgl-releases-$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
}
|