From 9139f65dc605c2cd2313b7fefd43dc4084c5a834 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Fri, 2 Jul 2010 21:39:44 -0500 Subject: graphics/gpscorrelate: Updated for version 1.6.1. Signed-off-by: Robby Workman --- graphics/gpscorrelate/gpscorrelate.SlackBuild | 29 +++++++++++++++------------ 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'graphics/gpscorrelate/gpscorrelate.SlackBuild') diff --git a/graphics/gpscorrelate/gpscorrelate.SlackBuild b/graphics/gpscorrelate/gpscorrelate.SlackBuild index 3da7ffac9796..bdc3dc0a1f75 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 +# Written by David Spencer # This script is dedicated to the public domain # Modified by Robby Workman 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 -- cgit v1.2.3