aboutsummaryrefslogtreecommitdiff
path: root/desktop/gxkb/gxkb.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gxkb/gxkb.SlackBuild')
-rw-r--r--desktop/gxkb/gxkb.SlackBuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/desktop/gxkb/gxkb.SlackBuild b/desktop/gxkb/gxkb.SlackBuild
index c8396cfd10..2a96cafc6e 100644
--- a/desktop/gxkb/gxkb.SlackBuild
+++ b/desktop/gxkb/gxkb.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for gxkb
# Copyright 2015-21 NK
+# Copyright 2024-2025 Vladislav 'fsLeg' Borisov, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gxkb
-VERSION=${VERSION:-0.8.2}
+VERSION=${VERSION:-0.9.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -81,6 +82,14 @@ find -L . \
-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 {} \;
+
+# Patch back Belorussian and Russian flags
+patch -p1 < $CWD/by-ru-flags.patch
+cp $CWD/{by,ru}.png data/flags/
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -103,10 +112,12 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
+cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION/
install -Dm 644 $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE