summaryrefslogtreecommitdiff
path: root/source/x/xterm/xterm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/xterm/xterm.SlackBuild')
-rwxr-xr-xsource/x/xterm/xterm.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/x/xterm/xterm.SlackBuild b/source/x/xterm/xterm.SlackBuild
index 9085c7f9..75eb0642 100755
--- a/source/x/xterm/xterm.SlackBuild
+++ b/source/x/xterm/xterm.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=xterm
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -111,6 +111,13 @@ make install DESTDIR=$PKG || exit 1
mkdir -p $PKG/usr/share/applications
cp xterm.desktop uxterm.desktop $PKG/usr/share/applications
+# Install a default XTerm app-defaults that looks like the Linux console.
+# Thanks to GazL.
+mv $PKG/etc/X11/app-defaults/XTerm $PKG/etc/X11/app-defaults/XTerm.upstream.default
+cp -a $CWD/linux-console-xterm.ad $PKG/etc/X11/app-defaults/XTerm
+chown root:root $PKG/etc/X11/app-defaults/XTerm
+chmod 644 $PKG/etc/X11/app-defaults/XTerm
+
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null