blob: f863ceaf716047cdc6fe59fcc3a28bd7454b3ed1 (
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
|
# Contributor: Andrew Sun <adsun701 at gmail dot com>
pkgname=mingw-w64-geos
pkgver=3.10.2
pkgrel=1
pkgdesc="C++ port of the Java Topology Suite (mingw-w64)"
arch=('any')
url="https://trac.osgeo.org/geos/"
license=('LGPL')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-cmake')
options=('!emptydirs' '!buildflags' '!strip' 'staticlibs')
source=("https://download.osgeo.org/geos/geos-${pkgver}.tar.bz2")
sha256sums=('50bbc599ac386b4c2b3962dcc411f0040a61f204aaef4eba7225ecdd0cf45715')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "${srcdir}/geos-${pkgver}"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake \
-DDISABLE_GEOS_INLINE=ON \
-DBUILD_TESTING=OFF -DBUILD_BENCHMARKS=OFF \
..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/geos-${pkgver}/build-${_arch}"
make DESTDIR="${pkgdir}" install
install -d "$pkgdir"/usr/bin
ln -s /usr/${_arch}/bin/${_arch}-geos-config "$pkgdir"/usr/bin/${_arch}-geos-config
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|