summaryrefslogtreecommitdiff
path: root/system/gpsd/gpsd.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <nobbutl@yahoo.co.uk>2010-05-13 00:40:31 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:40:31 +0200
commit6ff4df3eeb2b8c4ac29389d67c36c2a273929fd8 (patch)
treeefa5b2b2aa06d3f2e6b652f9c1563d7bfd4de25c /system/gpsd/gpsd.SlackBuild
parent7f62b352aab3dcb85c2eb14a0795129f7e485163 (diff)
downloadslackbuilds-6ff4df3eeb2b8c4ac29389d67c36c2a273929fd8.tar.gz
system/gpsd: Updated for version 2.39
Diffstat (limited to 'system/gpsd/gpsd.SlackBuild')
-rw-r--r--system/gpsd/gpsd.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/system/gpsd/gpsd.SlackBuild b/system/gpsd/gpsd.SlackBuild
index a534478e73..70f1ab037e 100644
--- a/system/gpsd/gpsd.SlackBuild
+++ b/system/gpsd/gpsd.SlackBuild
@@ -3,13 +3,12 @@
# Written by David Spencer <nobbutl@yahoo.co.uk>
# This script is dedicated to the public domain
-set -e
-
PRGNAM=gpsd
VERSION=2.39
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -26,6 +25,8 @@ elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
fi
+set -e
+
ENABLELIST=""
set -- $ENABLE
while [[ "$1" != "" ]]
@@ -50,6 +51,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Fixup the pkgconfig file templates
+patch -p1 < $CWD/gpsd-pkgconfig_templates.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -60,7 +64,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--enable-dbus \
$ENABLELIST \
- $DISABLELIST || exit 1
+ $DISABLELIST
make
make install-strip DESTDIR=$PKG
@@ -78,4 +82,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}