summaryrefslogtreecommitdiff
path: root/desktop/wmblob/wmblob.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmblob/wmblob.SlackBuild')
-rw-r--r--desktop/wmblob/wmblob.SlackBuild49
1 files changed, 29 insertions, 20 deletions
diff --git a/desktop/wmblob/wmblob.SlackBuild b/desktop/wmblob/wmblob.SlackBuild
index 98092fe6bc..6722d69b1a 100644
--- a/desktop/wmblob/wmblob.SlackBuild
+++ b/desktop/wmblob/wmblob.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for wmblob
#
-# Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com>
+# Copyright 2015 Gethyn ThomasQuail <email removed>
# All rights reserved.
#
# Based on:
@@ -25,14 +25,23 @@
# 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
+# - BUILD=2
+# - install binary stripped
+# - apply SLKCFLAGS
+# - don't install INSTALL in docdir
+
PRGNAM=wmblob
VERSION=${VERSION:-1.0.4}
-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 +52,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,27 +81,27 @@ 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!
./configure \
---prefix=/usr \
---libdir=/usr/lib${LIBDIRSUFFIX} \
---x-includes=/usr/include/X11 \
---x-libraries=/usr/lib/X11 \
---sysconfdir=/etc \
---localstatedir=/var \
---mandir=/usr/man \
---docdir=/usr/doc/$PRGNAM-$VERSION \
---build=$ARCH-slackware-linux
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --x-includes=/usr/include/X11 \
+ --x-libraries=/usr/lib/X11 \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+# configure ignores environment CFLAGS, so:
+sed -i "s,-O2,$SLKCFLAGS," src/Makefile
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
-# Compresses man page
-gzip -9 $PKG/usr/man/man1/wmblob.1
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING INSTALL doc/how_it_works NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING doc/how_it_works NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install