aboutsummaryrefslogtreecommitdiff
path: root/misc/rlwrap/rlwrap.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/rlwrap/rlwrap.SlackBuild')
-rw-r--r--misc/rlwrap/rlwrap.SlackBuild20
1 files changed, 14 insertions, 6 deletions
diff --git a/misc/rlwrap/rlwrap.SlackBuild b/misc/rlwrap/rlwrap.SlackBuild
index 5814ac461885b..201ef8a841f5f 100644
--- a/misc/rlwrap/rlwrap.SlackBuild
+++ b/misc/rlwrap/rlwrap.SlackBuild
@@ -5,7 +5,7 @@
# Released under the WTFPL
PRGNAM=rlwrap
-VERSION=0.30
+VERSION=${VERSION:-0.32}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -17,8 +17,13 @@ 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
@@ -40,19 +45,22 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
make
make DESTDIR=$PKG install-strip
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a [ABCINRT]* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS BUGS ChangeLog COPYING INSTALL NEWS PLEA README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-gzip -9 $PKG/usr/man/man1/$PRGNAM.1
-
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}