summaryrefslogtreecommitdiff
path: root/desktop/xvkbd/xvkbd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/xvkbd/xvkbd.SlackBuild')
-rw-r--r--desktop/xvkbd/xvkbd.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/desktop/xvkbd/xvkbd.SlackBuild b/desktop/xvkbd/xvkbd.SlackBuild
index 635b8ea4a0..2844baf70d 100644
--- a/desktop/xvkbd/xvkbd.SlackBuild
+++ b/desktop/xvkbd/xvkbd.SlackBuild
@@ -1,13 +1,14 @@
-#!/bin/sh
+#!/bin/sh -eu
# Slackware build script for xvkbd
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=xvkbd
-VERSION=2.8
+VERSION=3.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -15,17 +16,17 @@ OUTPUT=${OUTPUT:-/tmp}
rm -rf $PKG
mkdir -p $TMP $PKG
-cd $TMP
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-xmkmf || exit 1
-make || exit 1
-make install DESTDIR=$PKG || exit 1
-make install.man DESTDIR=$PKG || exit 1
+xmkmf
+make
+make install DESTDIR=$PKG
+make install.man DESTDIR=$PKG
strip --strip-unneeded $PKG/usr/bin/*
gzip -9 $PKG/usr/man/man?/*