desktop/mate-terminal: Updated for version 1.28.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Johannes Schoepfer 2024-03-09 06:52:58 +07:00 committed by Willy Sudiarto Raharjo
parent f82799a475
commit 5d2ab03ba5
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 10 additions and 9 deletions

View file

@ -3,6 +3,3 @@ the MATE Desktop.
Optional dependency for help files:
yelp
NOTE: This script will download submodules from Internet
while building

View file

@ -4,7 +4,7 @@
# Copyright 2013 Chess Griffin Raleigh, NC
# Copyright 2013-2021 Willy Sudiarto Raharjo
# Copyright 2023-2024 Johannes Schoepfer, Germany
# Copyright 2023-2024 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -84,12 +84,19 @@ 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 {} +
# If yelp is not present don't build Help-files and remove HelpContens-menu
# If yelp is not present don't build Help-files, remove HelpContens-menu and
# move HelpAbout in first file-menu
if ! command -v yelp; then
sed -i "/HelpContents/d" src/terminal.xml
sed -i "/subdir('help')/d" meson.build
sed -i src/terminal.xml \
-e "/HelpContents/d" \
-e "/HelpAbout/d" \
-e "/FileCloseWindow/a <separator \/>\n <menuitem action=\"HelpAbout\" \/>"
fi
# Avoid dependency on mate-submoules at the cost for disabled session-manager-client
sed -i -e "/submodules/d" -e "/HAVE_SMCLIENT/d" meson.build
mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
@ -114,9 +121,6 @@ cd ..
cp $CWD/org.mate.interface.gschema.xml \
$PKG/usr/share/glib-2.0/schemas/org.mate.interface.gschema.xml
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