aboutsummaryrefslogtreecommitdiff
path: root/system/gpsd/gpsd.SlackBuild
diff options
context:
space:
mode:
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 a534478e7345c..70f1ab037e489 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}