diff options
author | B. Watson <yalhcru@gmail.com> | 2017-02-10 16:31:49 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-11 07:24:00 +0700 |
commit | 0354e29e802a88e4e281ccf9fb894b1d214b52bc (patch) | |
tree | c9400e3b763cfe5fc27c8c93f9068347bc003698 /desktop/wmdl/wmdl.SlackBuild | |
parent | 9aea9ef044ed9f51e00e91db3563e2596962db3d (diff) | |
download | slackbuilds-0354e29e802a88e4e281ccf9fb894b1d214b52bc.tar.gz |
desktop/wmdl: New maintainer, add man page.
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 9271bdd619..bee823c14f 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 |