summaryrefslogtreecommitdiffstats
path: root/system/rmw/rmw.SlackBuild
diff options
context:
space:
mode:
author Andy Alt2018-10-27 01:11:33 +0200
committer Willy Sudiarto Raharjo2018-10-27 04:27:31 +0200
commit14b0b718bd4f70d01f2533f2e35b9039b7a58135 (patch)
treece9d389af4213e1455a7e93a77c492d505b55525 /system/rmw/rmw.SlackBuild
parentcf85678bd12c650ba563bee227134228e76e3226 (diff)
downloadslackbuilds-14b0b718bd4f70d01f2533f2e35b9039b7a58135.tar.gz
system/rmw: Updated for version 0.4.05.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/rmw/rmw.SlackBuild')
-rw-r--r--system/rmw/rmw.SlackBuild36
1 files changed, 31 insertions, 5 deletions
diff --git a/system/rmw/rmw.SlackBuild b/system/rmw/rmw.SlackBuild
index 6def0726b4..3c0ddbdde4 100644
--- a/system/rmw/rmw.SlackBuild
+++ b/system/rmw/rmw.SlackBuild
@@ -1,11 +1,29 @@
#!/bin/sh
-
+#
# Slackware build script for rmw
-
-# Written by (Andy Alt) (andy400-dev@yahoo.com)
+#
+# Copyright 2018 / Andy Alt / United States
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=rmw
-VERSION=${VERSION:-0.4.03}
+VERSION=${VERSION:-0.4.05}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,16 +75,24 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
+ --localedir=/usr/share/locale \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/etc
+cat rmwrc > $PKG/etc/rmwrc.new
+
+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
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}