diff options
Diffstat (limited to 'desktop/wmtimer/wmtimer.SlackBuild')
-rw-r--r-- | desktop/wmtimer/wmtimer.SlackBuild | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/desktop/wmtimer/wmtimer.SlackBuild b/desktop/wmtimer/wmtimer.SlackBuild index c0f8fb718e..0c9d242407 100644 --- a/desktop/wmtimer/wmtimer.SlackBuild +++ b/desktop/wmtimer/wmtimer.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for WMTimer # -# Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> +# Copyright 2015 Gethyn ThomasQuail <email removed> # All rights reserved. # # Based on: @@ -25,14 +25,21 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Now maintained by B. Watson <yalhcru@gmail.com> + +# 20160816 bkw: +# - took over maintenance +# - fix literal string == compares (need to be strcmp()) +# - install binary stripped + PRGNAM=wmtimer VERSION=${VERSION:-2.92} -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 @@ -43,8 +50,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" @@ -72,16 +79,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Let's compile! -cd wmtimer -make CC="gcc -fgnu89-inline $SLKCFLAGS" +patch -p1 < $CWD/compilefix.diff -# Create bin directory and move executable there +sed -i -e "s,-O2,$SLKCFLAGS -fgnu89-inline," -e "s,-g ,," $PRGNAM/Makefile +make -C $PRGNAM mkdir -p $PKG/usr/bin -mv wmtimer $PKG/usr/bin - -# Leave build directory -cd .. +install -s -m0755 $PRGNAM/$PRGNAM $PKG/usr/bin mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a Changelog COPYING CREDITS INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION |