diff options
author | slakmagik <jsun@freeshell.org> | 2010-05-13 00:34:29 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:34:29 +0200 |
commit | 5a46f774c87b7a9d47216afac67a3f339db86426 (patch) | |
tree | fe4d51ae4f2827e1153c1e5a17c91599e9f79ffa /misc/rlwrap/rlwrap.SlackBuild | |
parent | 4e4e4fcefb02fcc8862e6394051e6933990b2e92 (diff) |
misc/rlwrap: Updated for version 0.32
Diffstat (limited to 'misc/rlwrap/rlwrap.SlackBuild')
-rw-r--r-- | misc/rlwrap/rlwrap.SlackBuild | 20 |
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} |