summaryrefslogtreecommitdiff
path: root/network/wmnd/wmnd.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-08-16 17:51:41 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-20 07:50:03 +0700
commitdc4d711c551201a3ab2ed6320794d28abc673346 (patch)
treed9f5c7ec4fbe36bc4764ca2c715c07271446ef7c /network/wmnd/wmnd.SlackBuild
parent9f13cae3c79fc57bf04b33f93ed640eec6af2f61 (diff)
downloadslackbuilds-dc4d711c551201a3ab2ed6320794d28abc673346.tar.gz
network/wmnd: New maintainer, minor fixes.
Diffstat (limited to 'network/wmnd/wmnd.SlackBuild')
-rw-r--r--network/wmnd/wmnd.SlackBuild35
1 files changed, 25 insertions, 10 deletions
diff --git a/network/wmnd/wmnd.SlackBuild b/network/wmnd/wmnd.SlackBuild
index 8b9e7f21e8..a996f95b74 100644
--- a/network/wmnd/wmnd.SlackBuild
+++ b/network/wmnd/wmnd.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for wmnd
#
-# Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com>
+# Copyright 2015 Gethyn ThomasQuail <email removed>
# All rights reserved.
#
# Based on:
@@ -25,14 +25,25 @@
# 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:
+# - take over maintenance
+# - BUILD=2
+# - i486 => i586
+# - actually use SLKCFLAGS
+# - install binary stripped
+# - don't install INSTALL in docdir
+# - fix path to example config in man page
+
PRGNAM=wmnd
VERSION=${VERSION:-0.4.17}
-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 +54,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,7 +83,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!
+sed -i \
+ "s,/usr/share/doc/$PRGNAM/,/usr/doc/$PRGNAM-$VERSION/${PRGNAM}rc," \
+ doc/$PRGNAM.1
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -83,13 +99,12 @@ find -L . \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
-# Compresses man page
-gzip -9 $PKG/usr/man/man1/wmnd.1
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog ChangeLog.0 COPYING examples INSTALL NEWS README THANKS TODO \
+cp -a AUTHORS ChangeLog* COPYING examples/${PRGNAM}rc NEWS README THANKS TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild