aboutsummaryrefslogtreecommitdiff
path: root/gis/geos/geos.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/geos/geos.SlackBuild')
-rw-r--r--gis/geos/geos.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/gis/geos/geos.SlackBuild b/gis/geos/geos.SlackBuild
index ffc5bad363597..02cf55b0f7711 100644
--- a/gis/geos/geos.SlackBuild
+++ b/gis/geos/geos.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=geos
-VERSION=${VERSION:-3.10.3}
+VERSION=${VERSION:-3.11.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -67,11 +67,15 @@ fi
set -e
+if [[ ${TESTBUILD:='NO'} == 'NO' ]]; then
+ TESTBUILDFLAGS='-DBUILD_TESTING=OFF'
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -88,9 +92,11 @@ mkdir -p build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_MANDIR=/usr/man \
+ $TESTBUILDFLAGS \
-DCMAKE_BUILD_TYPE=Release \
..
make
+ [[ $TESTBUILD == "YES" ]] && make test
make install DESTDIR=$PKG
)
@@ -99,7 +105,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING DEVELOPER-NOTES.md HOWTO_RELEASE NEWS README.md \
+ AUTHORS CODE_OF_CONDUCT.md COPYING DEVELOPER-NOTES.md NEWS.md README.md release.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild