aboutsummaryrefslogtreecommitdiff
path: root/system/numlockx/numlockx.SlackBuild
diff options
context:
space:
mode:
authorFrank Caraballo <fecaraballo[AT]gmail.com>2010-05-11 19:46:34 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 19:46:34 +0200
commit7e4f410d13851334aa858e1ecbcfdb72badfa28e (patch)
treeeed1a80b32965d0e0dfc6bcbd813c546015d7f23 /system/numlockx/numlockx.SlackBuild
parente40d6b50eb7bfe1c5e204a1eeb590bb552376491 (diff)
system/numlockx: Updated for version 1.1
Diffstat (limited to 'system/numlockx/numlockx.SlackBuild')
-rw-r--r--system/numlockx/numlockx.SlackBuild16
1 files changed, 6 insertions, 10 deletions
diff --git a/system/numlockx/numlockx.SlackBuild b/system/numlockx/numlockx.SlackBuild
index 42eb073ed07c4..e81e4fbdfa9e8 100644
--- a/system/numlockx/numlockx.SlackBuild
+++ b/system/numlockx/numlockx.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for NumLockX
-# Copyright 2007 MagicMan <MagicMan07@bluebottle.com>
+# Copyright 2007 Frank Caraballo <fecaraballo[AT]gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,11 +24,6 @@
# Modified by the SlackBuilds.org project
-if [ "$(id -u)" != "0" ]; then
- echo "This script must be run as root!"
- exit 1
-fi
-
set -e
PRGNAM=numlockx
@@ -36,7 +31,7 @@ VERSION=1.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -55,15 +50,16 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-CFLAGS="$SLKCFLAGS" \
+#CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var
+ --localstatedir=/var \
+ --x-includes=/usr/include \
+ --x-libraries=/usr/lib
make
make install-strip DESTDIR=$PKG