summaryrefslogtreecommitdiff
path: root/academic/units/units.SlackBuild
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2012-07-27 23:58:34 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-07-27 23:58:34 -0500
commitd22823d9ca1b78700d3ad087e75da39ba5ab1c16 (patch)
treea03711c02ed9d8eab6799d391435a09299431356 /academic/units/units.SlackBuild
parentd75fa785a94087c1294a2b9269dfb69f08af6c2f (diff)
downloadslackbuilds-d22823d9ca1b78700d3ad087e75da39ba5ab1c16.tar.gz
academic/units: Fixed packaging (improper DESTDIR usage)
Thanks to Enrich Ritz for the bug report. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/units/units.SlackBuild')
-rw-r--r--academic/units/units.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/academic/units/units.SlackBuild b/academic/units/units.SlackBuild
index 19b4d779dd..cc4052b417 100644
--- a/academic/units/units.SlackBuild
+++ b/academic/units/units.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=units
VERSION=2.00
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -62,11 +62,13 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+patch -p1 < $CWD/destdir-fix.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -76,7 +78,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--infodir=/usr/info \
--localstatedir=/var \
- --datadir=/usr/share/units \
+ --datadir=/usr/share \
--build=$ARCH-slackware-linux
make