summaryrefslogtreecommitdiffstats
path: root/system/mrxvt
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-02-10 13:59:33 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-12 13:32:49 +0700
commit9ffffd6255895a38d8de4c88324637fe579d489b (patch)
treedec11d5af3b876834cc38210abecd9e67ff3545d /system/mrxvt
parent98210220bff2bff60c76e35cf450c66533f75727 (diff)
downloadslackbuilds-9ffffd6255895a38d8de4c88324637fe579d489b.tar.gz
slackbuilds-9ffffd6255895a38d8de4c88324637fe579d489b.tar.xz
system/mrxvt: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mrxvt')
-rw-r--r--system/mrxvt/mrxvt.SlackBuild22
1 files changed, 6 insertions, 16 deletions
diff --git a/system/mrxvt/mrxvt.SlackBuild b/system/mrxvt/mrxvt.SlackBuild
index 51e94ce761..ae2cc449d8 100644
--- a/system/mrxvt/mrxvt.SlackBuild
+++ b/system/mrxvt/mrxvt.SlackBuild
@@ -4,7 +4,6 @@
# Written by Paul Wisehart wise@lupulin.net
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mrxvt
@@ -21,9 +20,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -63,10 +59,11 @@ cd $PRGNAM-$VERSION
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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+SLKCFLAGS+=" -fcommon"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -84,13 +81,11 @@ CXXFLAGS="$SLKCFLAGS" \
--disable-debug
make
-make install DESTDIR=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
+cp -a AUTHORS COPYING ChangeLog NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION/
rmdir $PKG/usr/share/doc/$PRGNAM
@@ -106,11 +101,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/share/applications
cat $CWD/mrxvt.desktop > $PKG/usr/share/applications/mrxvt.desktop
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
-
# Let's not clobber existing config files
for i in \
$PKG/etc/mrxvt/default.menu $PKG/etc/mrxvt/submenus.menu \