summaryrefslogtreecommitdiff
path: root/graphics/gpscorrelate/gpscorrelate.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2010-07-02 21:39:44 -0500
committerErik Hanson <erik@slackbuilds.org>2010-07-03 02:31:43 -0500
commit9139f65dc605c2cd2313b7fefd43dc4084c5a834 (patch)
treec5070e7ad03751296fc070f6d9c71150d46e3777 /graphics/gpscorrelate/gpscorrelate.SlackBuild
parent9b4d00f858b518e5baf828090b11b366fc154ff1 (diff)
downloadslackbuilds-9139f65dc605c2cd2313b7fefd43dc4084c5a834.tar.gz
graphics/gpscorrelate: Updated for version 1.6.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/gpscorrelate/gpscorrelate.SlackBuild')
-rw-r--r--graphics/gpscorrelate/gpscorrelate.SlackBuild29
1 files changed, 16 insertions, 13 deletions
diff --git a/graphics/gpscorrelate/gpscorrelate.SlackBuild b/graphics/gpscorrelate/gpscorrelate.SlackBuild
index 3da7ffac97..bdc3dc0a1f 100644
--- a/graphics/gpscorrelate/gpscorrelate.SlackBuild
+++ b/graphics/gpscorrelate/gpscorrelate.SlackBuild
@@ -1,22 +1,20 @@
#!/bin/sh
# Slackware build script for gpscorrelate
-# Written by David Spencer <nobbutl@yahoo.co.uk>
+# Written by David Spencer <baildon.research@googlemail.com>
# This script is dedicated to the public domain
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=gpscorrelate
-VERSION=1.6.0
+VERSION=1.6.1
BUILD=${BUILD:-1}
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,23 +51,28 @@ chmod -R u+w,go+r-w,a-s .
make CFLAGS+="$SLKCFLAGS"
-mkdir -p $PKG/usr/bin
-cp gpscorrelate gpscorrelate-gui $PKG/usr/bin
-strip --strip-unneeded $PKG/usr/bin/*
+make install \
+ prefix=/usr \
+ mandir=/usr/man \
+ docdir=/usr/doc/$PRGNAM-$VERSION/html \
+ 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
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/share/applications
cat gpscorrelate.desktop > $PKG/usr/share/applications/gpscorrelate.desktop
+mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps/
+cat gpscorrelate-gui.svg > $PKG/usr/share/icons/hicolor/scalable/apps/gpscorrelate-gui.svg
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING INSTALL README RELEASES \
$PKG/usr/doc/$PRGNAM-$VERSION
-cp -a doc/{{command,concepts,gui,index}.html,corr.png} \
- $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir -p $PKG/usr/man/man1
-gzip -9c gpscorrelate.1 > $PKG/usr/man/man1/gpscorrelate.1.gz
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh