summaryrefslogtreecommitdiff
path: root/academic/units/units.SlackBuild
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2011-01-02 01:17:25 -0200
committerRobby Workman <rworkman@slackbuilds.org>2011-01-02 00:27:08 -0600
commit1fcd179d1785c277f3fa3ed7d4017ff46f2d1633 (patch)
tree59975548695481547ca88482a015660080cdee6b /academic/units/units.SlackBuild
parent9014c7ad4e76d3bfd164b5bf99d4c72868d9c1ab (diff)
downloadslackbuilds-1fcd179d1785c277f3fa3ed7d4017ff46f2d1633.tar.gz
academic/units: Updated for version 1.88.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'academic/units/units.SlackBuild')
-rw-r--r--academic/units/units.SlackBuild37
1 files changed, 28 insertions, 9 deletions
diff --git a/academic/units/units.SlackBuild b/academic/units/units.SlackBuild
index e682c9f418..6aac50b6b3 100644
--- a/academic/units/units.SlackBuild
+++ b/academic/units/units.SlackBuild
@@ -1,20 +1,38 @@
#!/bin/sh
+# vim: et ts=2 sw=2
# Slackware build script for gnu units
-# Written by Yalla-One <yallaone@gmail.com>
+# Copyright (c) 2010 Gregory J.L. Tourte <artourter@gmail.com>
+# Previously maintained by Yalla-One <yallaone@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=units
-VERSION=1.86
+VERSION=1.88
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -55,8 +73,11 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --localstatedir=/var \
--datadir=/usr/share/units \
- --localstatedir=/var
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -64,10 +85,8 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*