diff options
Diffstat (limited to 'academic/qgis/qgis.SlackBuild')
-rw-r--r-- | academic/qgis/qgis.SlackBuild | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/academic/qgis/qgis.SlackBuild b/academic/qgis/qgis.SlackBuild index 40bb9d3abfdb..bc929d9d4a4d 100644 --- a/academic/qgis/qgis.SlackBuild +++ b/academic/qgis/qgis.SlackBuild @@ -1,20 +1,18 @@ #!/bin/sh # Slackware build script for Quantum GIS -# Written by David Spencer <nobbutl@yahoo.co.uk> +# Written by David Spencer <baildon.research@googlemail.com> # This script is dedicated to the public domain PRGNAM=qgis VERSION=${VERSION:-1.4.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -53,14 +51,17 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -cmake \ +# Disable broken SIP version check +# See https://trac.osgeo.org/qgis/ticket/2446 +patch -p1 < $CWD/qgis-1.4.0-sip-4.10.patch + +cmake . \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DQGIS_LIB_SUBDIR=lib${LIBDIRSUFFIX} \ -DQGIS_PLUGIN_SUBDIR=lib${LIBDIRSUFFIX}/qgis \ - -DGRASS_PREFIX=/usr/lib${LIBDIRSUFFIX}/grass \ - . + -DGRASS_PREFIX=/usr/lib${LIBDIRSUFFIX}/grass make make install DESTDIR=$PKG @@ -68,10 +69,12 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; + +install -D -m 0644 $CWD/$PRGNAM.desktop \ + $PKG/usr/share/applications/$PRGNAM.desktop +install -D -m 0644 $CWD/$PRGNAM.png \ + $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ @@ -81,11 +84,6 @@ cp -a \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -install -D -m 0644 $CWD/$PRGNAM.desktop \ - $PKG/usr/share/applications/$PRGNAM.desktop -install -D -m 0644 $CWD/$PRGNAM.png \ - $PKG/usr/share/pixmaps/$PRGNAM.png - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |