diff options
author | slakmagik <jsun@freeshell.org> | 2010-05-13 00:24:11 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:24:11 +0200 |
commit | e53cc286f0dc6316ac5fbd27285f74b25759f44c (patch) | |
tree | 64d6b225173113131df456992ce46a20d5c45f3c /development/Xdialog/Xdialog.SlackBuild | |
parent | f642de80fc2862db9f6a1a0cccc01901e79be283 (diff) |
development/Xdialog: Updated for version 2.3.1
Diffstat (limited to 'development/Xdialog/Xdialog.SlackBuild')
-rw-r--r-- | development/Xdialog/Xdialog.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
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} |