summaryrefslogtreecommitdiff
path: root/academic/grass/grass.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2011-05-28 00:33:09 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-06-13 01:30:57 -0400
commitd1dfe23b749354654439ecafb0611116b42747f4 (patch)
treed4e357e58dddf0fc88076b3279cd9cd8d8707f7d /academic/grass/grass.SlackBuild
parenta42a55002f5b7a37e5dcbfb82beb6de539936b76 (diff)
downloadslackbuilds-d1dfe23b749354654439ecafb0611116b42747f4.tar.gz
academic/grass: Updated for version 6.4.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'academic/grass/grass.SlackBuild')
-rw-r--r--academic/grass/grass.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/academic/grass/grass.SlackBuild b/academic/grass/grass.SlackBuild
index 407ef33d23..4232e19bad 100644
--- a/academic/grass/grass.SlackBuild
+++ b/academic/grass/grass.SlackBuild
@@ -1,11 +1,11 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for grass
# Written by David Spencer <baildon.research@googlemail.com>
# This script is dedicated to the public domain
PRGNAM=grass
-VERSION=${VERSION:-6.4.0}
+VERSION=${VERSION:-6.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,6 +60,7 @@ while [[ "$1" != "" ]]; do
in
blas | \
lapack | \
+ geos | \
sqlite )
WITHLIST[$((withnum++))]="--with-$1"
shift
@@ -128,13 +129,14 @@ sed -i -e "s;$PKG;;" -e "s;-$VERSION;;" $PKG/usr/bin/grass64
# Fix fonts path for fontcap
sed -i -e "s;$PKG;;" $PKG/opt/$PRGNAM-$VERSION/etc/fontcap
+# Unversion and install the pkgconfig file
+sed -i -e "s/-${VERSION}//g" grass.pc
+install -D -m0644 grass.pc $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/grass.pc
+
find $PKG/opt/$PRGNAM-$VERSION/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/opt/$PRGNAM-$VERSION/man -type l ) ; do \
ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-# Install the pkgconfig file.
-install -D -m0644 grass.pc $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/grass.pc
-
mkdir -p $PKG/usr/man/man1
cp -a \
$PKG/opt/$PRGNAM-$VERSION/man/man1/grass6.1.gz \