summaryrefslogtreecommitdiffstats
path: root/system/gnome-terminal/gnome-terminal.SlackBuild
diff options
context:
space:
mode:
author Bob Funk <bobfunk11@gmail.com>2022-06-04 01:54:02 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-06-04 10:37:12 +0700
commita946ecd4285125c3081f52e7dc94d5f5e916963c (patch)
tree3e77fa5572575293aed055da81a867b65b243498 /system/gnome-terminal/gnome-terminal.SlackBuild
parentbbebd0a6cd4452e4b79f2064a0008e66165d0c6f (diff)
downloadslackbuilds-a946ecd4285125c3081f52e7dc94d5f5e916963c.tar.gz
slackbuilds-a946ecd4285125c3081f52e7dc94d5f5e916963c.tar.xz
system/gnome-terminal: Updated for version 3.43.90. New maintainer.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/gnome-terminal/gnome-terminal.SlackBuild')
-rw-r--r--system/gnome-terminal/gnome-terminal.SlackBuild79
1 files changed, 33 insertions, 46 deletions
diff --git a/system/gnome-terminal/gnome-terminal.SlackBuild b/system/gnome-terminal/gnome-terminal.SlackBuild
index 7c5ed5faf1..ee9ec628c3 100644
--- a/system/gnome-terminal/gnome-terminal.SlackBuild
+++ b/system/gnome-terminal/gnome-terminal.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for gnome-terminal
-# Copyright 2015 Thorn-Inurcide USA
+# Copyright 2022 Bob Funk Winnipeg, Canada
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,16 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 20220211 bkw: Modified by SlackBuilds.org.
-# - updated for v2.33.5, the last of the 2.x versions. it's still
-# 10 years old.
-# - fix build on 15.0.
-# - stop writing outside of $TMP (i'm looking at you, gconf).
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gnome-terminal
-VERSION=${VERSION:-2.33.5}
+VERSION=${VERSION:-3.43.90}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -73,51 +67,44 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
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 {} \+
-
-# 20220211 bkw: --disable-schemas-install is needed because without it,
-# it compiles the .schemas directly to /etc/gconf (pollutes the build box).
-# Instead, we do this in the doinst.sh.
-
-LIBS="-lICE" \
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --localstatedir=/var \
- --sysconfdir=/etc \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --disable-static \
- --disable-scrollkeeper \
- --disable-maintainer-mode \
- --disable-schemas-install \
- --build=$ARCH-slackware-linux \
-
-make
-
-# 20220211 bkw: bit of a dirty hack, to get 'make install' to finish.
-# I think this is fine, but even if it's not, it only affects a few
-# translations. It's caused by --disable-scrollkeeper...
-for i in help/*/gnome-terminal-*.omf; do
- cp $i $i.out
-done
-
-# 20220211 bkw: have to install this manually.
-mkdir -p $PKG/etc/gconf/schemas
-cp -a src/gnome-terminal.schemas $PKG/etc/gconf/schemas
-
-make install-strip DESTDIR=$PKG
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dstrip=true
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+
+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
+
+mv $PKG/usr/share/man $PKG/usr/man
+
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog* COPYING HACKING NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ COPYING COPYING.GFDL ChangeLog README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install