diff options
-rw-r--r-- | academic/units/README | 4 | ||||
-rw-r--r-- | academic/units/units.SlackBuild | 20 | ||||
-rw-r--r-- | academic/units/units.info | 2 |
3 files changed, 16 insertions, 10 deletions
diff --git a/academic/units/README b/academic/units/README index 1ff6cae56f66..8c20bc6585e1 100644 --- a/academic/units/README +++ b/academic/units/README @@ -1,10 +1,6 @@ -The GNU Units conversion program - The Units program converts quantities expressed in various scales to their equivalents in other scales. The units program can handle multiplicative scale changes as well as nonlinear conversions such as Fahrenheit to Celsius or wire gauge. Units comes with an annotated, extendable database defining over two thousand units. The units are defined in an external data file. - -If questions, email yallaone@gmail.com diff --git a/academic/units/units.SlackBuild b/academic/units/units.SlackBuild index 3c91bb940b99..866af7cb5cd9 100644 --- a/academic/units/units.SlackBuild +++ b/academic/units/units.SlackBuild @@ -4,14 +4,12 @@ # Written by Yalla-One <yallaone@gmail.com> -# Exit on most errors -set -e - PRGNAM=units VERSION=1.86 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -19,10 +17,17 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -36,6 +41,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --datadir=/usr/share/units \ --localstatedir=/var @@ -44,8 +50,10 @@ make make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/man @@ -64,4 +72,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/academic/units/units.info b/academic/units/units.info index ed86c50ce320..4ef8c16a344c 100644 --- a/academic/units/units.info +++ b/academic/units/units.info @@ -2,7 +2,9 @@ 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" +DOWNLOAD_x86_64="" MD5SUM="e27f580474702e9138b332acbafafe5b" +MD5SUM_x86_64="" MAINTAINER="Yalla-One" EMAIL="yallaone@gmail.com" APPROVED="rworkman" |