summaryrefslogtreecommitdiff
path: root/system/pbzip2/pbzip2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/pbzip2/pbzip2.SlackBuild')
-rwxr-xr-x[-rw-r--r--]system/pbzip2/pbzip2.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/system/pbzip2/pbzip2.SlackBuild b/system/pbzip2/pbzip2.SlackBuild
index e2b263d555..c685f8421a 100644..100755
--- a/system/pbzip2/pbzip2.SlackBuild
+++ b/system/pbzip2/pbzip2.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for PBZIP2
#
-# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pbzip2
-VERSION=1.0.5
+VERSION=1.1.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,14 +33,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-set -eu
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
fi
set -eu
@@ -56,8 +56,8 @@ chmod -R u+w,go+r-w,a-s .
make CFLAGS+="$SLKCFLAGS"
-# DESTDIR isn't supported, install manually
-mkdir -p $PKG/usr/{bin,man/man1,doc/$PRGNAM-$VERSION} $PKG/install
+# DESTDIR isn't supported; install manually
+mkdir -p $PKG/usr/{bin,man/man1,doc/$PRGNAM-$VERSION}
# Binary
cp pbzip2 $PKG/usr/bin/pbzip2
@@ -70,6 +70,8 @@ chmod 0644 $PKG/usr/man/man1/pbzip2.1.gz
cp -a AUTHORS COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG