From e53cc286f0dc6316ac5fbd27285f74b25759f44c Mon Sep 17 00:00:00 2001 From: slakmagik Date: Thu, 13 May 2010 00:24:11 +0200 Subject: development/Xdialog: Updated for version 2.3.1 --- development/Xdialog/Xdialog.SlackBuild | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'development/Xdialog/Xdialog.SlackBuild') diff --git a/development/Xdialog/Xdialog.SlackBuild b/development/Xdialog/Xdialog.SlackBuild index 4547a1c1bbded..a85a2a5e66c49 100644 --- a/development/Xdialog/Xdialog.SlackBuild +++ b/development/Xdialog/Xdialog.SlackBuild @@ -5,9 +5,9 @@ # Released under the WTFPL PRGNAM=Xdialog -VERSION=2.3.1 +VERSION=${VERSION:-2.3.1} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -27,10 +27,13 @@ fi 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 @@ -54,7 +57,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --datadir=/usr/ \ + --datadir=/usr \ --mandir=/usr/man \ --$NLS-nls \ --build=$ARCH-slackware-linux \ @@ -75,10 +78,11 @@ make DESTDIR=$PKG install for i in $(find . -type l); do ln -s $(readlink $i).gz $i.gz; rm $i; done ) +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cp -a [ABCINR]* $PKG/usr/doc/$PRGNAM-$VERSION 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} -- cgit v1.2.3