aboutsummaryrefslogtreecommitdiff
path: root/system/rmw/rmw.SlackBuild
diff options
context:
space:
mode:
authorandy5995 <andy400-dev@yahoo.com>2021-07-11 20:51:04 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-12 18:53:15 +0700
commit9453e66b2cff3b29bc4760bfc6d87731457e76fb (patch)
treeba161d36373995310af356b0d3dcbe7e01edbab2 /system/rmw/rmw.SlackBuild
parent3628cf7f3c2077a27ae4607dd713f09f85efefac (diff)
system/rmw: Updated for version 0.8.0_2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/rmw/rmw.SlackBuild')
-rw-r--r--system/rmw/rmw.SlackBuild35
1 files changed, 20 insertions, 15 deletions
diff --git a/system/rmw/rmw.SlackBuild b/system/rmw/rmw.SlackBuild
index bee1c166a75a..8b744a35e24d 100644
--- a/system/rmw/rmw.SlackBuild
+++ b/system/rmw/rmw.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for rmw
#
-# Copyright 2019-2021 / Andy Alt / United States
+# Copyright 2021 / Andy Alt / Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,11 +21,13 @@
# 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.
+#
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rmw
-VERSION=${VERSION:-0.7.06}
+VERSION=${VERSION:-0.8.0_2}
+SRCNAM=$(echo $VERSION | tr _ -)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,9 +62,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$SRCNAM.tar.gz
+cd $PRGNAM-$SRCNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,23 +72,26 @@ 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 {} \;
+mkdir build
+cd build
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
+meson .. \
+ --buildtype=release \
+ -Dstrip=true \
--prefix=/usr \
--mandir=/usr/man \
- --localedir=/usr/share/locale \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --localedir=/usr/share/locale
-make
-make install-strip DESTDIR=$PKG
+ninja
+DESTDIR=$PKG ninja install
+cd ..
+# meson configures stripping the binary when installing above
#
-# rmw no longer searches for a system-wide config file
-#
-#mkdir -p $PKG/etc
-#cat rmwrc > $PKG/etc/rmwrc.new
+#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
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