summaryrefslogtreecommitdiff
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
parent9014c7ad4e76d3bfd164b5bf99d4c72868d9c1ab (diff)
downloadslackbuilds-1fcd179d1785c277f3fa3ed7d4017ff46f2d1633.tar.gz
academic/units: Updated for version 1.88.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r--academic/units/slack-desc2
-rw-r--r--academic/units/units.SlackBuild37
-rw-r--r--academic/units/units.info14
3 files changed, 36 insertions, 17 deletions
diff --git a/academic/units/slack-desc b/academic/units/slack-desc
index db7ec50c3e..d1e98c800a 100644
--- a/academic/units/slack-desc
+++ b/academic/units/slack-desc
@@ -5,7 +5,7 @@
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
- |-----handy-ruler------------------------------------------------------|
+ |-----handy-ruler------------------------------------------------------|
units: units (The GNU Units conversion program)
units:
units: The Units program converts quantities expressed in various scales
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*
diff --git a/academic/units/units.info b/academic/units/units.info
index f783e7e45a..f98549f8ef 100644
--- a/academic/units/units.info
+++ b/academic/units/units.info
@@ -1,10 +1,10 @@
PRGNAM="units"
-VERSION="1.86"
-HOMEPAGE="http://www.gnu.org/software/units/units.html"
-DOWNLOAD="http://ftp.gnu.org/gnu/units/units-1.86.tar.gz"
-MD5SUM="e27f580474702e9138b332acbafafe5b"
+VERSION="1.88"
+HOMEPAGE="http://www.gnu.org/software/units/"
+DOWNLOAD="http://ftp.gnu.org/gnu/units/units-1.88.tar.gz"
+MD5SUM="9b2ee6e7e0e9c62741944cf33fc8a656"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-MAINTAINER="Yalla-One"
-EMAIL="yallaone@gmail.com"
-APPROVED="rworkman"
+MAINTAINER="ArTourter"
+EMAIL="artourter@gmail.com"
+APPROVED="Niels Horn"