diff options
Diffstat (limited to 'desktop/wmtop/wmtop.SlackBuild')
-rw-r--r-- | desktop/wmtop/wmtop.SlackBuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/desktop/wmtop/wmtop.SlackBuild b/desktop/wmtop/wmtop.SlackBuild index 26413c4b92..d5908d442e 100644 --- a/desktop/wmtop/wmtop.SlackBuild +++ b/desktop/wmtop/wmtop.SlackBuild @@ -1,30 +1,40 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for wmtop # Written by Cezary M. Kruk (c.kruk@bigfoot.com) # # Modified by the SlackBuilds.org project. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=wmtop VERSION=${VERSION:-0.84} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -56,7 +66,7 @@ make \ PREFIX=/usr \ INCS="-I/usr/include" \ LIBDIR="-L/usr/lib${LIBDIRSUFFIX}/X11" \ - OPTS="$SLKCFLAGS -fgnu89-inline" \ + OPTS="$SLKCFLAGS -fgnu89-inline -fcommon" \ linux mkdir -p $PKG/usr/bin $PKG/usr/man/man1 @@ -72,4 +82,4 @@ 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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |