aboutsummaryrefslogtreecommitdiff
path: root/system/wmfsm/wmfsm.SlackBuild
diff options
context:
space:
mode:
authorYanes Checcacci Balod <yanes@pobox.com>2018-02-08 16:04:12 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-02-10 08:09:33 +0700
commit98f11d461cf3b86f01c7a31280bfbc8c077560f6 (patch)
treea0a66386f1d74108f8f5318391750273fcec2667 /system/wmfsm/wmfsm.SlackBuild
parent8cc367ba2bf4f3f3881ad9a7d8f07e6a5958ce1e (diff)
system/wmfsm: Updated for version 0.36.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/wmfsm/wmfsm.SlackBuild')
-rw-r--r--system/wmfsm/wmfsm.SlackBuild35
1 files changed, 21 insertions, 14 deletions
diff --git a/system/wmfsm/wmfsm.SlackBuild b/system/wmfsm/wmfsm.SlackBuild
index e26cebaba5514..c57fc1c3847bb 100644
--- a/system/wmfsm/wmfsm.SlackBuild
+++ b/system/wmfsm/wmfsm.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for wmfsm
-# Copyright (c) 2014, Yanes Checcacci Balod <yanes@pobox.com>, Brazil
+# Copyright (c) 2018, Yanes Checcacci Balod <yanes@pobox.com>, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wmfsm
-VERSION=${VERSION:-0.34}
+SRCDIR=dockapps-83c2c40
+VERSION=${VERSION:-0.36}
BUILD=${BUILD:-1}
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
@@ -40,15 +41,15 @@ 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"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- echo "This Arch is not supported."
- exit 1
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -61,21 +62,29 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+cd $SRCDIR
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+mkdir -p $PKG/usr/bin
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+autoreconf -i
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --with-xpm=highcolor # Choices are:cyan highcolor lowcolor
make
-make install DESTDIR=$PKG
+make install DESTDIR=$PKG PREFIX=$PKG/usr MANDIR=$PKG/usr/man
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -83,10 +92,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-# Collecting each file to DOC package build directory
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cp -a AUTHORS ChangeLog.old COPYING INSTALL TODO ChangeLog README wmfsm/wmfsmrc.sample $PKG/usr/doc/$PRGNAM-$VERSION/
+cp -v AUTHORS ChangeLog COPYING NEWS README wmfsm/wmfsmrc.sample $PKG/usr/doc/$PRGNAM-$VERSION/
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc