aboutsummaryrefslogtreecommitdiff
path: root/desktop/wmtimer/wmtimer.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-08-16 04:21:07 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-20 07:50:03 +0700
commitf186f2a2e350259164f978456b1aed456cdfa2d5 (patch)
tree3aac3c2e05a8dc74fc5ee9b14fc925c989a8a00f /desktop/wmtimer/wmtimer.SlackBuild
parent787c93b8a8208711b3f5cba99e89e1f736e7874e (diff)
desktop/wmtimer: New maintainer, minor fixes.
Diffstat (limited to 'desktop/wmtimer/wmtimer.SlackBuild')
-rw-r--r--desktop/wmtimer/wmtimer.SlackBuild29
1 files changed, 16 insertions, 13 deletions
diff --git a/desktop/wmtimer/wmtimer.SlackBuild b/desktop/wmtimer/wmtimer.SlackBuild
index c0f8fb718e30f..0c9d2424077ef 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