diff options
Diffstat (limited to 'desktop/wmdl/wmdl.SlackBuild')
-rw-r--r-- | desktop/wmdl/wmdl.SlackBuild | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/desktop/wmdl/wmdl.SlackBuild b/desktop/wmdl/wmdl.SlackBuild index 9271bdd619c6a..bee823c14f4ef 100644 --- a/desktop/wmdl/wmdl.SlackBuild +++ b/desktop/wmdl/wmdl.SlackBuild @@ -2,16 +2,26 @@ # Slackware build script for wmdl -# Written by Pablo Santamaria (pablosantamaria@gmail.com) +# Originally written by Pablo Santamaria (email removed) + +# Now maintained by B. Watson <yalhcru@gmail.com>. Original version +# had no license, modified version released under the WTFPL. See +# http://www.wtfpl.net/txt/copying/ for details. + +# 20170210 bkw: +# - Take over maintenance +# - i486 => i586 +# - add man page +# - BUILD=2 PRGNAM=wmdl VERSION=${VERSION:-1.4.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -22,8 +32,8 @@ 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" @@ -53,8 +63,11 @@ find -L . \ make CFLAGS="$SLKCFLAGS" mkdir -p $PKG/usr/bin -cp -a wmdl $PKG/usr/bin -strip --strip-unneeded $PKG/usr/bin/wmdl +install -m0755 -s $PRGNAM $PKG/usr/bin + +# man page written for this SlackBuild, based on -h output and README. +mkdir -p $PKG/usr/man/man1 +gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README $PKG/usr/doc/$PRGNAM-$VERSION |