summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/anymeal/Makefile-am.patch10
-rw-r--r--misc/anymeal/README4
-rw-r--r--misc/anymeal/anymeal.SlackBuild120
-rw-r--r--misc/anymeal/anymeal.info10
-rw-r--r--misc/anymeal/configure-ac.patch34
-rw-r--r--misc/anymeal/doinst.sh14
-rw-r--r--misc/anymeal/slack-desc19
-rw-r--r--misc/bdf2psf/bdf2psf.info2
-rw-r--r--misc/bitwarden-desktop/README3
-rw-r--r--misc/bitwarden-desktop/bitwarden-desktop.SlackBuild95
-rw-r--r--misc/bitwarden-desktop/bitwarden-desktop.info10
-rw-r--r--misc/bitwarden-desktop/doinst.sh12
-rw-r--r--misc/bitwarden-desktop/slack-desc19
-rw-r--r--misc/clawsker/clawsker.SlackBuild4
-rw-r--r--misc/clawsker/clawsker.info6
-rw-r--r--misc/cups-pk-helper/README10
-rw-r--r--misc/cups-pk-helper/cups-pk-helper.SlackBuild109
-rw-r--r--misc/cups-pk-helper/cups-pk-helper.info10
-rw-r--r--misc/cups-pk-helper/slack-desc19
-rw-r--r--misc/dex/dex.SlackBuild4
-rw-r--r--misc/dex/dex.info4
-rw-r--r--misc/discount/discount.SlackBuild3
-rw-r--r--misc/discount/discount.info6
-rw-r--r--misc/dos2unix/dos2unix.SlackBuild2
-rw-r--r--misc/dos2unix/dos2unix.info6
-rw-r--r--misc/fcitx5-chewing/README2
-rw-r--r--misc/fcitx5-chewing/doinst.sh5
-rw-r--r--misc/fcitx5-chewing/fcitx5-chewing.SlackBuild104
-rw-r--r--misc/fcitx5-chewing/fcitx5-chewing.info10
-rw-r--r--misc/fcitx5-chewing/slack-desc19
-rw-r--r--misc/fcitx5-chinese-addons/README4
-rw-r--r--misc/fcitx5-chinese-addons/doinst.sh12
-rw-r--r--misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild104
-rw-r--r--misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info10
-rw-r--r--misc/fcitx5-chinese-addons/slack-desc19
-rw-r--r--misc/fcitx5-configtool/README6
-rw-r--r--misc/fcitx5-configtool/doinst.sh3
-rw-r--r--misc/fcitx5-configtool/fcitx5-configtool.SlackBuild104
-rw-r--r--misc/fcitx5-configtool/fcitx5-configtool.info10
-rw-r--r--misc/fcitx5-configtool/slack-desc19
-rw-r--r--misc/fcitx5-gtk/README15
-rw-r--r--misc/fcitx5-gtk/fcitx5-gtk.SlackBuild103
-rw-r--r--misc/fcitx5-gtk/fcitx5-gtk.info10
-rw-r--r--misc/fcitx5-gtk/slack-desc19
-rw-r--r--misc/fcitx5-mozc/0005-Enable-verbose-build.patch30
-rw-r--r--misc/fcitx5-mozc/0008-renderer-Convert-Gtk2-to-Gtk3.patch229
-rw-r--r--misc/fcitx5-mozc/0010-fix-build-gcc11.patch11
-rw-r--r--misc/fcitx5-mozc/0011-build-with-libstdc++.patch12
-rw-r--r--misc/fcitx5-mozc/0012-mozc-build-gcc.patch27
-rw-r--r--misc/fcitx5-mozc/README17
-rw-r--r--misc/fcitx5-mozc/README.emacs5
-rw-r--r--misc/fcitx5-mozc/fcitx5-mozc.SlackBuild216
-rw-r--r--misc/fcitx5-mozc/fcitx5-mozc.info30
-rw-r--r--misc/fcitx5-mozc/init.el_mozc4
-rw-r--r--misc/fcitx5-mozc/slack-desc19
-rw-r--r--misc/fcitx5-qt/README14
-rw-r--r--misc/fcitx5-qt/doinst.sh3
-rw-r--r--misc/fcitx5-qt/fcitx5-qt.SlackBuild105
-rw-r--r--misc/fcitx5-qt/fcitx5-qt.info10
-rw-r--r--misc/fcitx5-qt/slack-desc19
-rw-r--r--misc/fcitx5-table-extra/README13
-rw-r--r--misc/fcitx5-table-extra/doinst.sh12
-rw-r--r--misc/fcitx5-table-extra/fcitx5-table-extra.SlackBuild104
-rw-r--r--misc/fcitx5-table-extra/fcitx5-table-extra.info10
-rw-r--r--misc/fcitx5-table-extra/slack-desc19
-rw-r--r--misc/fcitx5-table-other/README7
-rw-r--r--misc/fcitx5-table-other/doinst.sh12
-rw-r--r--misc/fcitx5-table-other/fcitx5-table-other.SlackBuild98
-rw-r--r--misc/fcitx5-table-other/fcitx5-table-other.info10
-rw-r--r--misc/fcitx5-table-other/slack-desc19
-rw-r--r--misc/fcitx5/README37
-rw-r--r--misc/fcitx5/doinst.sh13
-rw-r--r--misc/fcitx5/fcitx5-autostart36
-rw-r--r--misc/fcitx5/fcitx5.SlackBuild110
-rw-r--r--misc/fcitx5/fcitx5.info10
-rw-r--r--misc/fcitx5/slack-desc19
-rw-r--r--misc/ghostpcl/ghostpcl.SlackBuild2
-rw-r--r--misc/ghostpcl/ghostpcl.info6
-rw-r--r--misc/gourmet/gourmet.SlackBuild2
-rw-r--r--misc/gourmet/gourmet.info2
-rw-r--r--misc/libime/README2
-rw-r--r--misc/libime/libime.SlackBuild104
-rw-r--r--misc/libime/libime.info10
-rw-r--r--misc/libime/slack-desc19
-rw-r--r--misc/mosquitto/mosquitto.SlackBuild7
-rw-r--r--misc/mosquitto/mosquitto.info6
-rw-r--r--misc/rlwrap/rlwrap.SlackBuild5
-rw-r--r--misc/rlwrap/rlwrap.info6
-rw-r--r--misc/swege/README23
-rw-r--r--misc/swege/slack-desc19
-rw-r--r--misc/swege/swege.SlackBuild91
-rw-r--r--misc/swege/swege.info10
-rw-r--r--misc/untldr/README5
-rw-r--r--misc/untldr/untldr.SlackBuild44
-rw-r--r--misc/untldr/untldr.info6
-rw-r--r--misc/xcb-imdkit/README8
-rw-r--r--misc/xcb-imdkit/slack-desc19
-rw-r--r--misc/xcb-imdkit/xcb-imdkit.SlackBuild103
-rw-r--r--misc/xcb-imdkit/xcb-imdkit.info10
99 files changed, 2836 insertions, 66 deletions
diff --git a/misc/anymeal/Makefile-am.patch b/misc/anymeal/Makefile-am.patch
new file mode 100644
index 0000000000..db305a9a78
--- /dev/null
+++ b/misc/anymeal/Makefile-am.patch
@@ -0,0 +1,10 @@
+--- anymeal-1.17/Makefile.am.orig 2022-11-01 20:12:48.379000000 -0000
++++ anymeal-1.17/Makefile.am 2022-11-01 20:12:53.568000000 -0000
+@@ -1,6 +1,6 @@
+ ACLOCAL_AMFLAGS = -I m4
+
+-SUBDIRS = anymeal tests
++SUBDIRS = anymeal
+
+ doc_DATA = README.md
+
diff --git a/misc/anymeal/README b/misc/anymeal/README
new file mode 100644
index 0000000000..c09fb704e9
--- /dev/null
+++ b/misc/anymeal/README
@@ -0,0 +1,4 @@
+AnyMeal is a free and open source recipe management software developed
+using SQLite3 and Qt5. It can manage a cookbook with more than 250,000
+MealMaster recipes, thereby allowing to import, export, search,
+display, edit, and print them.
diff --git a/misc/anymeal/anymeal.SlackBuild b/misc/anymeal/anymeal.SlackBuild
new file mode 100644
index 0000000000..a8be0d73b8
--- /dev/null
+++ b/misc/anymeal/anymeal.SlackBuild
@@ -0,0 +1,120 @@
+#!/bin/bash
+
+# Slackware build script for anymeal
+
+# Copyright 2022 SlackBuilds.org Project, Ben Collver, Earth-Planet, Universe
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=anymeal
+VERSION=${VERSION:-1.17}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ 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
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# disable googletest harness and add --without-windres configure option
+patch -p1 < $CWD/configure-ac.patch
+patch -p1 < $CWD/Makefile-am.patch
+
+autoreconf
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --without-windres
+
+make
+make install DESTDIR=$PKG
+
+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 {} \;
+
+mkdir -p $PKG/usr/share/{applications,pixmaps}
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog ChangeLog LICENSE README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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 -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/misc/anymeal/anymeal.info b/misc/anymeal/anymeal.info
new file mode 100644
index 0000000000..1549156ee5
--- /dev/null
+++ b/misc/anymeal/anymeal.info
@@ -0,0 +1,10 @@
+PRGNAM="anymeal"
+VERSION="1.17"
+HOMEPAGE="https://wedesoft.github.io/anymeal/"
+DOWNLOAD="https://github.com/wedesoft/anymeal/releases/download/v1.17/anymeal-1.17.tar.xz"
+MD5SUM="fc2c709656b99b757ed85db280e60d1a"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="recode"
+MAINTAINER="Ben Collver"
+EMAIL="bencollver@riseup.net"
diff --git a/misc/anymeal/configure-ac.patch b/misc/anymeal/configure-ac.patch
new file mode 100644
index 0000000000..772caae79a
--- /dev/null
+++ b/misc/anymeal/configure-ac.patch
@@ -0,0 +1,34 @@
+--- anymeal-1.17/configure.ac.orig 2022-11-01 20:41:56.815000000 -0000
++++ anymeal-1.17/configure.ac 2022-11-01 20:41:52.771000000 -0000
+@@ -15,17 +15,24 @@
+ AC_MSG_ERROR([Could not find flex])
+ fi
+
++AC_ARG_WITH(windres,
++ AS_HELP_STRING([--with-windres],
++ [Enable support for windres (default: auto)]),
++ [WINDRES=$with_windres], [WINDRES=auto])
++
+ dnl Check for windres.
+-AC_CHECK_PROG(WINDRES,windres,windres,no)
++if test "x$WINDRES" = "xauto"; then
++ AC_CHECK_PROG(WINDRES,windres,windres,no)
++fi
+ AM_CONDITIONAL([HAVE_WINDRES], [test "x$WINDRES" = "xwindres"])
+
+ dnl Check for Googletest framework.
+-if test "x$GTEST" = "x"; then
+- GTEST="/usr/src/googletest/googletest"
+-fi
+-AS_IF([test -e "$GTEST/src/gtest-all.cc"],
+- AC_SUBST(GTEST),
+- AC_MSG_ERROR([Could not find $GTEST/src/gtest-all.cc]))
++dnl if test "x$GTEST" = "x"; then
++dnl GTEST="/usr/src/googletest/googletest"
++dnl fi
++dnl AS_IF([test -e "$GTEST/src/gtest-all.cc"],
++dnl AC_SUBST(GTEST),
++dnl AC_MSG_ERROR([Could not find $GTEST/src/gtest-all.cc]))
+
+ dnl Check for recode-library.
+ AC_MSG_CHECKING([for recode-library])
diff --git a/misc/anymeal/doinst.sh b/misc/anymeal/doinst.sh
new file mode 100644
index 0000000000..0fb9c8b686
--- /dev/null
+++ b/misc/anymeal/doinst.sh
@@ -0,0 +1,14 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/misc/anymeal/slack-desc b/misc/anymeal/slack-desc
new file mode 100644
index 0000000000..a51fee3c81
--- /dev/null
+++ b/misc/anymeal/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+anymeal: anymeal (cooking recipe management program)
+anymeal:
+anymeal: AnyMeal is a free and open source recipe management software
+anymeal: developed using SQLite3 and Qt5. It can manage a cookbook with more
+anymeal: than 250,000 MealMaster recipes, thereby allowing to import, export,
+anymeal: search, display, edit, and print them.
+anymeal:
+anymeal: Homepage: https://wedesoft.github.io/anymeal/
+anymeal:
+anymeal:
+anymeal:
diff --git a/misc/bdf2psf/bdf2psf.info b/misc/bdf2psf/bdf2psf.info
index 5bf1033dad..8c2ef4d5ed 100644
--- a/misc/bdf2psf/bdf2psf.info
+++ b/misc/bdf2psf/bdf2psf.info
@@ -1,7 +1,7 @@
PRGNAM="bdf2psf"
VERSION="1.207"
HOMEPAGE="https://packages.qa.debian.org/c/console-setup.html"
-DOWNLOAD="https://deb.debian.org/debian/pool/main/c/console-setup/bdf2psf_1.207_all.deb"
+DOWNLOAD="https://slackware.uk/~urchlay/src/bdf2psf_1.207_all.deb"
MD5SUM="b1e5c76a85c774b4101260d02c5e3661"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/misc/bitwarden-desktop/README b/misc/bitwarden-desktop/README
new file mode 100644
index 0000000000..4d233beb10
--- /dev/null
+++ b/misc/bitwarden-desktop/README
@@ -0,0 +1,3 @@
+Bitwarden
+
+Bitwarden client applications (desktop)
diff --git a/misc/bitwarden-desktop/bitwarden-desktop.SlackBuild b/misc/bitwarden-desktop/bitwarden-desktop.SlackBuild
new file mode 100644
index 0000000000..6118b871f6
--- /dev/null
+++ b/misc/bitwarden-desktop/bitwarden-desktop.SlackBuild
@@ -0,0 +1,95 @@
+#!/bin/bash
+
+# Slackware build script for bitwarden-desktop
+#
+# Copyright 2022 marav, Paris, FR
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=bitwarden-desktop
+SRCNAM=bitwarden
+VERSION=${VERSION:-2022.11.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ 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
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ DEBARCH="i386"
+ LIBDIRSUFFIX=""
+ echo "This package is currently only available for 64bit."
+ exit 1
+elif [ "$ARCH" = "x86_64" ]; then
+ DEBARCH="amd64"
+ LIBDIRSUFFIX="64"
+else
+ echo "Package for $(uname -m) architecture is not available."
+ exit 1
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $PKG
+ar p $CWD/Bitwarden-${VERSION}-amd64.deb data.tar.xz | tar Jxv
+
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $PKG/usr/share/doc/$SRCNAM/* $PKG/opt/Bitwarden/LICENSE* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share/doc
+cat $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
diff --git a/misc/bitwarden-desktop/bitwarden-desktop.info b/misc/bitwarden-desktop/bitwarden-desktop.info
new file mode 100644
index 0000000000..fd04b90acb
--- /dev/null
+++ b/misc/bitwarden-desktop/bitwarden-desktop.info
@@ -0,0 +1,10 @@
+PRGNAM="bitwarden-desktop"
+VERSION="2022.11.0"
+HOMEPAGE="https://bitwarden.com/"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/bitwarden/clients/releases/download/desktop-v2022.11.0/Bitwarden-2022.11.0-amd64.deb"
+MD5SUM_x86_64="e888f5b3682e88d4d5622d2c153cc125"
+REQUIRES=""
+MAINTAINER="marav"
+EMAIL="marav8@free.fr"
diff --git a/misc/bitwarden-desktop/doinst.sh b/misc/bitwarden-desktop/doinst.sh
new file mode 100644
index 0000000000..7d010b535a
--- /dev/null
+++ b/misc/bitwarden-desktop/doinst.sh
@@ -0,0 +1,12 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+# If other icon themes are installed, then add to/modify this as needed
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
+
diff --git a/misc/bitwarden-desktop/slack-desc b/misc/bitwarden-desktop/slack-desc
new file mode 100644
index 0000000000..283e680183
--- /dev/null
+++ b/misc/bitwarden-desktop/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+bitwarden-desktop: bitwarden-desktop (Open source password management solutions)
+bitwarden-desktop:
+bitwarden-desktop: Bitwarden is an Open source password management solutions for
+bitwarden-desktop: individuals, teams, and business organizations.
+bitwarden-desktop:
+bitwarden-desktop:
+bitwarden-desktop:
+bitwarden-desktop: https://github.com/bitwarden/clients
+bitwarden-desktop:
+bitwarden-desktop:
+bitwarden-desktop:
diff --git a/misc/clawsker/clawsker.SlackBuild b/misc/clawsker/clawsker.SlackBuild
index 3b9b98491f..9f5260869e 100644
--- a/misc/clawsker/clawsker.SlackBuild
+++ b/misc/clawsker/clawsker.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for Clawsker
#
-# Copyright 2009-2017 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2009-202 Erik W. Hanson, Minneapolis, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=clawsker
-VERSION=${VERSION:-1.1.0}
+VERSION=${VERSION:-1.3.7}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
diff --git a/misc/clawsker/clawsker.info b/misc/clawsker/clawsker.info
index 8ff06fd6b2..a163e1ecdf 100644
--- a/misc/clawsker/clawsker.info
+++ b/misc/clawsker/clawsker.info
@@ -1,8 +1,8 @@
PRGNAM="clawsker"
-VERSION="1.1.0"
+VERSION="1.3.7"
HOMEPAGE="https://www.claws-mail.org/clawsker.php"
-DOWNLOAD="https://www.claws-mail.org/tools/clawsker-1.1.0.tar.xz"
-MD5SUM="c06d5e55660eba2b6f8c1be2d5d4c73e"
+DOWNLOAD="https://www.claws-mail.org/tools/clawsker-1.3.7.tar.xz"
+MD5SUM="a4280952be05a6b4b212f527d1fe982d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-gtk2"
diff --git a/misc/cups-pk-helper/README b/misc/cups-pk-helper/README
new file mode 100644
index 0000000000..04f38354a7
--- /dev/null
+++ b/misc/cups-pk-helper/README
@@ -0,0 +1,10 @@
+cups-pk-helper is a PolicyKit helper to configure cups with
+fine-grained privileges.
+
+For example, it's possible to let users enable/disable printers without
+requiring a password, while still requiring a password for editing
+printer settings.
+
+To make it easy to integrate cups-pk-helper in system-config-printer,
+the D-Bus API is based to a large extent on the pycups one.
+
diff --git a/misc/cups-pk-helper/cups-pk-helper.SlackBuild b/misc/cups-pk-helper/cups-pk-helper.SlackBuild
new file mode 100644
index 0000000000..5736f6e81e
--- /dev/null
+++ b/misc/cups-pk-helper/cups-pk-helper.SlackBuild
@@ -0,0 +1,109 @@
+#!/bin/bash
+
+# Slackware build script for cups-pk-helper
+
+# Copyright 2022, Bob Funk, Winnipeg Canada
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=cups-pk-helper
+VERSION=${VERSION:-0.2.7}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog HACKING NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/misc/cups-pk-helper/cups-pk-helper.info b/misc/cups-pk-helper/cups-pk-helper.info
new file mode 100644
index 0000000000..f80ca0b529
--- /dev/null
+++ b/misc/cups-pk-helper/cups-pk-helper.info
@@ -0,0 +1,10 @@
+PRGNAM="cups-pk-helper"
+VERSION="0.2.7"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/cups-pk-helper/"
+DOWNLOAD="https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-0.2.7.tar.xz"
+MD5SUM="0cdadec9ea8f88b7fc7af8ca206da2bd"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Bob Funk"
+EMAIL="bobfunk11@gmail.com"
diff --git a/misc/cups-pk-helper/slack-desc b/misc/cups-pk-helper/slack-desc
new file mode 100644
index 0000000000..25b9eb048e
--- /dev/null
+++ b/misc/cups-pk-helper/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+cups-pk-helper: cups-pk-helper (cups PolicyKit Helper)
+cups-pk-helper:
+cups-pk-helper: cups-pk-helper is a PolicyKit helper to configure cups with
+cups-pk-helper: fine-grained privileges.
+cups-pk-helper:
+cups-pk-helper:
+cups-pk-helper:
+cups-pk-helper:
+cups-pk-helper:
+cups-pk-helper: https://www.freedesktop.org/wiki/Software/cups-pk-helper/
+cups-pk-helper:
diff --git a/misc/dex/dex.SlackBuild b/misc/dex/dex.SlackBuild
index 417d2ccbe7..76d63f3f6f 100644
--- a/misc/dex/dex.SlackBuild
+++ b/misc/dex/dex.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for dex
-# Copyright 2022 Damian Perticone Berisso,Argentina
+# Copyright 2022 Damian Perticone, Berisso, Argentina
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dex
VERSION=${VERSION:-0.9.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
diff --git a/misc/dex/dex.info b/misc/dex/dex.info
index 35c9012053..d0ee993c09 100644
--- a/misc/dex/dex.info
+++ b/misc/dex/dex.info
@@ -1,10 +1,10 @@
PRGNAM="dex"
VERSION="0.9.0"
HOMEPAGE="https://github.com/jceb/dex"
-DOWNLOAD="https://github.com/jceb/dex/archive/refs/tags/v0.9.0.tar.gz"
+DOWNLOAD="https://github.com/jceb/dex/archive/v0.9.0/dex-0.9.0.tar.gz"
MD5SUM="dfe9ecae8f7588c03942f5b292c8ac78"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="Sphinx"
MAINTAINER="Damian Perticone"
-EMAIL="mjolnirdam@gmail.com.com"
+EMAIL="mjolnirdam@gmail.com"
diff --git a/misc/discount/discount.SlackBuild b/misc/discount/discount.SlackBuild
index 1ae15a59e0..cb260d2124 100644
--- a/misc/discount/discount.SlackBuild
+++ b/misc/discount/discount.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for discount
+# Copyright 2022 Brandon Pribula, BC Canada
# Copyright 2018-2020 Donald Cooley, South Haven, Indiana USA
# Copyright (c) 2011-2015, Antonio Hernández Blas <hba.nihilismus@gmail.com>
# All rights reserved.
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=discount
-VERSION=${VERSION:-2.2.7}
+VERSION=${VERSION:-2.2.7b}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
diff --git a/misc/discount/discount.info b/misc/discount/discount.info
index 36944d15e0..3beb60fc37 100644
--- a/misc/discount/discount.info
+++ b/misc/discount/discount.info
@@ -1,8 +1,8 @@
PRGNAM="discount"
-VERSION="2.2.7"
+VERSION="2.2.7b"
HOMEPAGE="https://www.pell.portland.or.us/~orc/Code/discount/"
-DOWNLOAD="https://github.com/Orc/discount/archive/v2.2.7/discount-2.2.7.tar.gz"
-MD5SUM="c02c81bea757667fbaf0fefdf9b3749c"
+DOWNLOAD="https://github.com/Orc/discount/archive/v2.2.7b/discount-2.2.7b.tar.gz"
+MD5SUM="634f5368ebed3c6cc9bf5b317d5939d9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/misc/dos2unix/dos2unix.SlackBuild b/misc/dos2unix/dos2unix.SlackBuild
index 676270c667..81dfacf15d 100644
--- a/misc/dos2unix/dos2unix.SlackBuild
+++ b/misc/dos2unix/dos2unix.SlackBuild
@@ -31,7 +31,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dos2unix
-VERSION=${VERSION:-7.4.2}
+VERSION=${VERSION:-7.4.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
diff --git a/misc/dos2unix/dos2unix.info b/misc/dos2unix/dos2unix.info
index 0dc9d22f3d..4abb9a6102 100644
--- a/misc/dos2unix/dos2unix.info
+++ b/misc/dos2unix/dos2unix.info
@@ -1,8 +1,8 @@
PRGNAM="dos2unix"
-VERSION="7.4.2"
+VERSION="7.4.3"
HOMEPAGE="https://waterlan.home.xs4all.nl/dos2unix.html"
-DOWNLOAD="https://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.4.2.tar.gz"
-MD5SUM="4e8f8c230a72753b307fab69f8121ba4"
+DOWNLOAD="https://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.4.3.tar.gz"
+MD5SUM="ff949538cf3c82910d5f6f486c1981dd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/misc/fcitx5-chewing/README b/misc/fcitx5-chewing/README
new file mode 100644
index 0000000000..284b815cac
--- /dev/null
+++ b/misc/fcitx5-chewing/README
@@ -0,0 +1,2 @@
+fcitx5-chewing is the chewing wrapper for fcitx5. Required
+dependencies are fcitx5 and libchewing.
diff --git a/misc/fcitx5-chewing/doinst.sh b/misc/fcitx5-chewing/doinst.sh
new file mode 100644
index 0000000000..4110f5514d
--- /dev/null
+++ b/misc/fcitx5-chewing/doinst.sh
@@ -0,0 +1,5 @@
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/misc/fcitx5-chewing/fcitx5-chewing.SlackBuild b/misc/fcitx5-chewing/fcitx5-chewing.SlackBuild
new file mode 100644
index 0000000000..59077bdcec
--- /dev/null
+++ b/misc/fcitx5-chewing/fcitx5-chewing.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+# Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5-chewing
+VERSION=${VERSION:-5.0.13}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+MARCH=$( uname -m )
+if [ -z "$ARCH" ]; then
+ case "$MARCH" in
+ i?86) export ARCH=i586 ;;
+ armv7hl) export ARCH=$MARCH ;;
+ arm*) export ARCH=arm ;;
+ *) export ARCH=$MARCH ;;
+ esac
+fi
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "armv7hl" ]; then
+ SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
+ LIBDIRSUFFIX=""
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp}
+PKG=$TMP/package-fcitx5-chewing
+
+rm -rf $PKG
+mkdir -p $TMP $PKG
+cd $TMP
+rm -rf fcitx5-chewing-$VERSION
+tar xvf $CWD/fcitx5-chewing-$VERSION.tar.?z || exit 1
+cd fcitx5-chewing-$VERSION || exit 1
+
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \+ -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \+
+
+mkdir build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
+ ..
+
+ make || exit 1
+ make install/strip DESTDIR=$PKG || exit 1
+cd ..
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* README* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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 $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/misc/fcitx5-chewing/fcitx5-chewing.info b/misc/fcitx5-chewing/fcitx5-chewing.info
new file mode 100644
index 0000000000..8c2f06d397
--- /dev/null
+++ b/misc/fcitx5-chewing/fcitx5-chewing.info
@@ -0,0 +1,10 @@
+PRGNAM="fcitx5-chewing"
+VERSION="5.0.13"
+HOMEPAGE="https://download.fcitx-im.org/fcitx5/fcitx5-chewing/"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-chewing/fcitx5-chewing-5.0.13.tar.xz"
+MD5SUM="c502c86cf5b69d795758bc4973d45e88"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="fcitx5 libchewing"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/fcitx5-chewing/slack-desc b/misc/fcitx5-chewing/slack-desc
new file mode 100644
index 0000000000..c0be98c5d0
--- /dev/null
+++ b/misc/fcitx5-chewing/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5-chewing: fcitx5-chewing (Chewing input method engine wrapper for fcitx5)
+fcitx5-chewing:
+fcitx5-chewing: Fcitx wrapper for the chewing input method engine.
+fcitx5-chewing:
+fcitx5-chewing: Homepage: https://fcitx-im.org/wiki/Fcitx_5
+fcitx5-chewing:
+fcitx5-chewing:
+fcitx5-chewing:
+fcitx5-chewing:
+fcitx5-chewing:
+fcitx5-chewing:
diff --git a/misc/fcitx5-chinese-addons/README b/misc/fcitx5-chinese-addons/README
new file mode 100644
index 0000000000..30a7236fd9
--- /dev/null
+++ b/misc/fcitx5-chinese-addons/README
@@ -0,0 +1,4 @@
+fcitx5-chinese-addons provides pinyin and table input method support
+for fcitx5. Released under LGPL-2.1+.
+
+im/pinyin/emoji.txt is derived from Unicode CLDR with modification.
diff --git a/misc/fcitx5-chinese-addons/doinst.sh b/misc/fcitx5-chinese-addons/doinst.sh
new file mode 100644
index 0000000000..ca71fd3c40
--- /dev/null
+++ b/misc/fcitx5-chinese-addons/doinst.sh
@@ -0,0 +1,12 @@
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
+if [ -e usr/share/glib-2.0/schemas ]; then
+ if [ -x /usr/bin/glib-compile-schemas ]; then
+ /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
+ fi
+fi
+
diff --git a/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild b/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild
new file mode 100644
index 0000000000..cc1a832bee
--- /dev/null
+++ b/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5-chinese-addons
+VERSION=${VERSION:-5.0.16}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-${VERSION}_dict.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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
diff --git a/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info b/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info
new file mode 100644
index 0000000000..6856fdc52c
--- /dev/null
+++ b/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info
@@ -0,0 +1,10 @@
+PRGNAM="fcitx5-chinese-addons"
+VERSION="5.0.16"
+HOMEPAGE="https://github.com/fcitx/fcitx5-chinese-addons"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-5.0.16_dict.tar.xz"
+MD5SUM="5ad2a94e9fb55c34ab075936ef29f379"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="fcitx5-qt libime"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/fcitx5-chinese-addons/slack-desc b/misc/fcitx5-chinese-addons/slack-desc
new file mode 100644
index 0000000000..01fc72e5f1
--- /dev/null
+++ b/misc/fcitx5-chinese-addons/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5-chinese-addons: fcitx5-chinese-addons (Chinese related addon for fcitx5)
+fcitx5-chinese-addons:
+fcitx5-chinese-addons: This provides pinyin and table input method support for fcitx5.
+fcitx5-chinese-addons: Released under LGPL-2.1+.
+fcitx5-chinese-addons:
+fcitx5-chinese-addons:
+fcitx5-chinese-addons:
+fcitx5-chinese-addons:
+fcitx5-chinese-addons:
+fcitx5-chinese-addons: Homepage: https://github.com/fcitx/fcitx5-chinese-addons
+fcitx5-chinese-addons:
diff --git a/misc/fcitx5-configtool/README b/misc/fcitx5-configtool/README
new file mode 100644
index 0000000000..929c275144
--- /dev/null
+++ b/misc/fcitx5-configtool/README
@@ -0,0 +1,6 @@
+Fcitx5-configtool provides the configuration GUI for Fcitx5.
+
+Do note that although this package could be installed along with the
+bundled kcm-fcitx, they are considered conflicting packages in some
+other distros (like Arch), so depending on your situation, you may
+uninstall and blacklist kcm-fcitx before installing this package.
diff --git a/misc/fcitx5-configtool/doinst.sh b/misc/fcitx5-configtool/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/misc/fcitx5-configtool/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/misc/fcitx5-configtool/fcitx5-configtool.SlackBuild b/misc/fcitx5-configtool/fcitx5-configtool.SlackBuild
new file mode 100644
index 0000000000..feba9cf6db
--- /dev/null
+++ b/misc/fcitx5-configtool/fcitx5-configtool.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5-configtool
+VERSION=${VERSION:-5.0.16}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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
diff --git a/misc/fcitx5-configtool/fcitx5-configtool.info b/misc/fcitx5-configtool/fcitx5-configtool.info
new file mode 100644
index 0000000000..4bd7b46193
--- /dev/null
+++ b/misc/fcitx5-configtool/fcitx5-configtool.info
@@ -0,0 +1,10 @@
+PRGNAM="fcitx5-configtool"
+VERSION="5.0.16"
+HOMEPAGE="https://github.com/fcitx/fcitx5-configtool"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-configtool/fcitx5-configtool-5.0.16.tar.xz"
+MD5SUM="aa74d50daf8f23376aa9c77d1183a860"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="fcitx5-qt"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/fcitx5-configtool/slack-desc b/misc/fcitx5-configtool/slack-desc
new file mode 100644
index 0000000000..663a547c50
--- /dev/null
+++ b/misc/fcitx5-configtool/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5-configtool: fcitx5-configtool (Configuration Tool for Fcitx5)
+fcitx5-configtool:
+fcitx5-configtool: Configuration Tool for Fcitx5.
+fcitx5-configtool:
+fcitx5-configtool: Homepage: https://fcitx-im.org/wiki/Fcitx_5
+fcitx5-configtool:
+fcitx5-configtool:
+fcitx5-configtool:
+fcitx5-configtool:
+fcitx5-configtool:
+fcitx5-configtool:
diff --git a/misc/fcitx5-gtk/README b/misc/fcitx5-gtk/README
new file mode 100644
index 0000000000..aa8eaf0727
--- /dev/null
+++ b/misc/fcitx5-gtk/README
@@ -0,0 +1,15 @@
+fcitx5-gtk provides the GTK IM modules and libraries for fcitx5.
+
+If you enable GObject Introspection (via the ENABLE_GIR CMake
+variable), make install will install some files to the system's GIR
+directories regardless of what CMAKE_INSTALL_PREFIX is set to.
+
+If you have installed it to a custom prefix, you'll need to update the
+GTK input method module cache. This is done by invoking
+gtk-query-immodules-3.0 (or gtk-query-immodules-3.0 for GTK 2) and
+setting GTK_PATH to point at fcitx5-gtk's GTK library install path
+beforehand. For example:
+
+ GTK_PATH=/your/install/path/lib/gtk-3.0 gtk-query-immodules-3.0 \
+ --update-cache
+
diff --git a/misc/fcitx5-gtk/fcitx5-gtk.SlackBuild b/misc/fcitx5-gtk/fcitx5-gtk.SlackBuild
new file mode 100644
index 0000000000..0cf222024a
--- /dev/null
+++ b/misc/fcitx5-gtk/fcitx5-gtk.SlackBuild
@@ -0,0 +1,103 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5-gtk
+VERSION=${VERSION:-5.0.21}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* README* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/misc/fcitx5-gtk/fcitx5-gtk.info b/misc/fcitx5-gtk/fcitx5-gtk.info
new file mode 100644
index 0000000000..c9ede67f95
--- /dev/null
+++ b/misc/fcitx5-gtk/fcitx5-gtk.info
@@ -0,0 +1,10 @@
+PRGNAM="fcitx5-gtk"
+VERSION="5.0.21"
+HOMEPAGE="https://github.com/fcitx/fcitx5-gtk"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-gtk/fcitx5-gtk-5.0.21.tar.xz"
+MD5SUM="eacea8907006451b7b65baa3e6590cbe"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="fcitx5"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/fcitx5-gtk/slack-desc b/misc/fcitx5-gtk/slack-desc
new file mode 100644
index 0000000000..5cd05489ea
--- /dev/null
+++ b/misc/fcitx5-gtk/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5-gtk: fcitx5-gtk (Gtk IM modules and DBus client library for fcitx5)
+fcitx5-gtk:
+fcitx5-gtk: Gtk IM module for fcitx5 and glib based dbus client library.
+fcitx5-gtk:
+fcitx5-gtk: Homepage: https://fcitx-im.org/wiki/Fcitx_5
+fcitx5-gtk:
+fcitx5-gtk:
+fcitx5-gtk:
+fcitx5-gtk:
+fcitx5-gtk:
+fcitx5-gtk:
diff --git a/misc/fcitx5-mozc/0005-Enable-verbose-build.patch b/misc/fcitx5-mozc/0005-Enable-verbose-build.patch
new file mode 100644
index 0000000000..7b7aa127e4
--- /dev/null
+++ b/misc/fcitx5-mozc/0005-Enable-verbose-build.patch
@@ -0,0 +1,30 @@
+From c3bb9b9aeaf6b19aadd76f4c5a526a9d2a38d35a Mon Sep 17 00:00:00 2001
+From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+Date: Sun, 27 Dec 2020 22:34:54 +0900
+Subject: [PATCH 5/7] Enable verbose build
+
+Description: Enable verboase build
+Forwarded: Not need
+Last-Update: 2022-05-05
+
+Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+---
+ src/build_mozc.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/build_mozc.py b/src/build_mozc.py
+index 305784de..fe5cf817 100755
+--- a/src/build_mozc.py
++++ b/src/build_mozc.py
+@@ -588,7 +588,7 @@ def BuildWithNinja(options, targets):
+
+ for target in targets:
+ (_, target_name) = target.split(':')
+- RunOrDie([ninja, '-C', build_arg, target_name])
++ RunOrDie([ninja, '-v', '-C', build_arg, target_name])
+
+
+ def BuildOnWindows(targets):
+--
+2.36.0
+
diff --git a/misc/fcitx5-mozc/0008-renderer-Convert-Gtk2-to-Gtk3.patch b/misc/fcitx5-mozc/0008-renderer-Convert-Gtk2-to-Gtk3.patch
new file mode 100644
index 0000000000..19b55f0f3c
--- /dev/null
+++ b/misc/fcitx5-mozc/0008-renderer-Convert-Gtk2-to-Gtk3.patch
@@ -0,0 +1,229 @@
+From b9ae4c57de95a7d73640cce5776540d8d841b0c2 Mon Sep 17 00:00:00 2001
+From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+Date: Fri, 6 May 2022 16:16:30 +0900
+Subject: [PATCH] renderer: Convert Gtk2 to Gtk3
+
+Description: renderer: Convert Gtk2 to Gtk3
+Forwarded: Not need
+Last-Update: 2022-05-07
+
+Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+---
+ src/renderer/mozc_renderer_main.cc | 2 +-
+ src/renderer/renderer.gyp | 7 +++----
+ src/renderer/unix/candidate_window.cc | 4 ++--
+ src/renderer/unix/gtk_wrapper.cc | 4 ++--
+ src/renderer/unix/infolist_window.cc | 4 ++--
+ src/renderer/unix/pango_wrapper.cc | 15 +++------------
+ src/renderer/unix/pango_wrapper.h | 3 +--
+ src/renderer/unix/text_renderer.cc | 5 ++---
+ src/renderer/unix/text_renderer.h | 3 +--
+ src/renderer/unix/text_renderer_interface.h | 2 +-
+ 10 files changed, 18 insertions(+), 31 deletions(-)
+
+diff --git a/src/renderer/mozc_renderer_main.cc b/src/renderer/mozc_renderer_main.cc
+index 85a0ae10..3b596d67 100644
+--- a/src/renderer/mozc_renderer_main.cc
++++ b/src/renderer/mozc_renderer_main.cc
+@@ -80,7 +80,7 @@ int main(int argc, char *argv[]) {
+ #ifdef OS_WIN
+ mozc::ScopedCOMInitializer com_initializer;
+ #elif defined(ENABLE_GTK_RENDERER)
+- gtk_set_locale();
++ setlocale(LC_ALL, "");
+ #if !GLIB_CHECK_VERSION(2, 31, 0)
+ // There are not g_thread_init function in glib>=2.31.0.
+ // http://developer.gnome.org/glib/2.31/glib-Deprecated-Thread-APIs.html#g-thread-init
+diff --git a/src/renderer/renderer.gyp b/src/renderer/renderer.gyp
+index 78eb6a75..34141a4a 100644
+--- a/src/renderer/renderer.gyp
++++ b/src/renderer/renderer.gyp
+@@ -532,15 +532,14 @@
+ # Required 'cflags' and 'link_settings' will be automatically
+ # injected into any target which directly or indirectly depends
+ # on this target.
+- 'target_name': 'gtk2_build_environment',
++ 'target_name': 'gtk3_build_environment',
+ 'type': 'none',
+ 'variables': {
+ 'target_pkgs' : [
+ 'glib-2.0',
+ 'gobject-2.0',
+ 'gthread-2.0',
+- 'gtk+-2.0',
+- 'gdk-2.0',
++ 'gtk+-3.0',
+ ],
+ },
+ 'all_dependent_settings': {
+@@ -583,7 +582,7 @@
+ '../ipc/ipc.gyp:ipc',
+ '../protocol/protocol.gyp:genproto_config_proto#host',
+ '../protocol/protocol.gyp:renderer_proto',
+- 'gtk2_build_environment',
++ 'gtk3_build_environment',
+ 'renderer_server',
+ 'renderer_style_handler',
+ 'table_layout',
+diff --git a/src/renderer/unix/candidate_window.cc b/src/renderer/unix/candidate_window.cc
+index bb0a346b..287f6871 100644
+--- a/src/renderer/unix/candidate_window.cc
++++ b/src/renderer/unix/candidate_window.cc
+@@ -85,7 +85,7 @@ CandidateWindow::CandidateWindow(TableLayoutInterface *table_layout,
+
+ bool CandidateWindow::OnPaint(GtkWidget *widget, GdkEventExpose *event) {
+ draw_tool_->Reset(
+- cairo_factory_->CreateCairoInstance(GetCanvasWidget()->window));
++ cairo_factory_->CreateCairoInstance(gtk_widget_get_window(GetCanvasWidget())));
+
+ DrawBackground();
+ DrawShortcutBackground();
+@@ -263,7 +263,7 @@ void CandidateWindow::DrawFrame() {
+ }
+
+ void CandidateWindow::Initialize() {
+- text_renderer_->Initialize(GetCanvasWidget()->window);
++ text_renderer_->Initialize(GetCanvasWidget());
+ }
+
+ void CandidateWindow::UpdateScrollBarSize() {
+diff --git a/src/renderer/unix/gtk_wrapper.cc b/src/renderer/unix/gtk_wrapper.cc
+index 83d206d7..92c5483f 100644
+--- a/src/renderer/unix/gtk_wrapper.cc
++++ b/src/renderer/unix/gtk_wrapper.cc
+@@ -49,7 +49,7 @@ void GtkWrapper::GSignalConnect(gpointer instance, const gchar *signal,
+ }
+
+ void GtkWrapper::GtkWidgetHideAll(GtkWidget *widget) {
+- gtk_widget_hide_all(widget);
++ gtk_widget_hide(widget);
+ }
+
+ void GtkWrapper::GtkWidgetShowAll(GtkWidget *widget) {
+@@ -135,7 +135,7 @@ void GtkWrapper::GtkWidgetRealize(GtkWidget *widget) {
+
+ void GtkWrapper::GdkWindowSetTypeHint(GtkWidget *widget,
+ GdkWindowTypeHint hint) {
+- gdk_window_set_type_hint(widget->window, hint);
++ gdk_window_set_type_hint(gtk_widget_get_window(widget), hint);
+ }
+
+ } // namespace gtk
+diff --git a/src/renderer/unix/infolist_window.cc b/src/renderer/unix/infolist_window.cc
+index 253f9659..f76f4c93 100644
+--- a/src/renderer/unix/infolist_window.cc
++++ b/src/renderer/unix/infolist_window.cc
+@@ -100,7 +100,7 @@ Rect InfolistWindow::GetCandidateColumnInClientCord() const {
+
+ bool InfolistWindow::OnPaint(GtkWidget *widget, GdkEventExpose *event) {
+ draw_tool_->Reset(
+- cairo_factory_->CreateCairoInstance(GetCanvasWidget()->window));
++ cairo_factory_->CreateCairoInstance(gtk_widget_get_window(GetCanvasWidget())));
+ Draw();
+ return true;
+ }
+@@ -237,7 +237,7 @@ int InfolistWindow::DrawRow(int row, int ypos) {
+ }
+
+ void InfolistWindow::Initialize() {
+- text_renderer_->Initialize(GetCanvasWidget()->window);
++ text_renderer_->Initialize(GetCanvasWidget());
+ }
+
+ void InfolistWindow::ReloadFontConfig(const std::string &font_description) {
+diff --git a/src/renderer/unix/pango_wrapper.cc b/src/renderer/unix/pango_wrapper.cc
+index 8f87699a..545072a3 100644
+--- a/src/renderer/unix/pango_wrapper.cc
++++ b/src/renderer/unix/pango_wrapper.cc
+@@ -88,21 +88,12 @@ void PangoWrapper::AttributesUnref(PangoAttrList *attribute) {
+
+ PangoContext *PangoWrapper::GetContext() { return context_; }
+
+-PangoWrapper::PangoWrapper(GdkDrawable *drawable) : gc_(gdk_gc_new(drawable)) {
+- GdkScreen *screen = gdk_drawable_get_screen(drawable);
+- renderer_ = gdk_pango_renderer_new(screen);
+- gdk_pango_renderer_set_drawable(GDK_PANGO_RENDERER(renderer_), drawable);
+- gdk_pango_renderer_set_gc(GDK_PANGO_RENDERER(renderer_), gc_);
+- context_ = gdk_pango_context_get();
++PangoWrapper::PangoWrapper(GtkWidget *window) {
++ context_ = gtk_widget_get_pango_context(window);
+ }
+
+ PangoWrapper::~PangoWrapper() {
+- gdk_pango_renderer_set_override_color(GDK_PANGO_RENDERER(renderer_),
+- PANGO_RENDER_PART_FOREGROUND, nullptr);
+- gdk_pango_renderer_set_drawable(GDK_PANGO_RENDERER(renderer_), nullptr);
+- gdk_pango_renderer_set_gc(GDK_PANGO_RENDERER(renderer_), nullptr);
+- g_object_unref(gc_);
+- g_object_unref(context_);
++ g_object_unref(G_OBJECT(context_));
+ }
+
+ } // namespace gtk
+diff --git a/src/renderer/unix/pango_wrapper.h b/src/renderer/unix/pango_wrapper.h
+index 7c41cc54..c7c7fb04 100644
+--- a/src/renderer/unix/pango_wrapper.h
++++ b/src/renderer/unix/pango_wrapper.h
+@@ -57,7 +57,7 @@ class PangoLayoutWrapper : public PangoLayoutWrapperInterface {
+
+ class PangoWrapper : public PangoWrapperInterface {
+ public:
+- explicit PangoWrapper(GdkDrawable *drawable);
++ explicit PangoWrapper(GtkWidget *window);
+ virtual ~PangoWrapper();
+ virtual void RendererDrawLayout(PangoLayoutWrapperInterface *layout, int x,
+ int y);
+@@ -68,7 +68,6 @@ class PangoWrapper : public PangoWrapperInterface {
+ private:
+ PangoRenderer *renderer_;
+ PangoContext *context_;
+- GdkGC *gc_;
+ DISALLOW_COPY_AND_ASSIGN(PangoWrapper);
+ };
+ } // namespace gtk
+diff --git a/src/renderer/unix/text_renderer.cc b/src/renderer/unix/text_renderer.cc
+index 164f01bc..4ba96ea2 100644
+--- a/src/renderer/unix/text_renderer.cc
++++ b/src/renderer/unix/text_renderer.cc
+@@ -39,9 +39,8 @@ namespace gtk {
+
+ TextRenderer::TextRenderer(FontSpecInterface *font_spec)
+ : font_spec_(font_spec), pango_(nullptr) {}
+-
+-void TextRenderer::Initialize(GdkDrawable *drawable) {
+- pango_.reset(new PangoWrapper(drawable));
++void TextRenderer::Initialize(GtkWidget *window) {
++ pango_.reset(new PangoWrapper(window));
+ }
+
+ void TextRenderer::SetUpPangoLayout(const std::string &str,
+diff --git a/src/renderer/unix/text_renderer.h b/src/renderer/unix/text_renderer.h
+index c4cd2430..ba36b052 100644
+--- a/src/renderer/unix/text_renderer.h
++++ b/src/renderer/unix/text_renderer.h
+@@ -50,8 +50,7 @@ class TextRenderer : public TextRendererInterface {
+ public:
+ explicit TextRenderer(FontSpecInterface *font_spec);
+ virtual ~TextRenderer() {}
+-
+- virtual void Initialize(GdkDrawable *drawable);
++ virtual void Initialize(GtkWidget *window);
+ virtual Size GetPixelSize(FontSpecInterface::FONT_TYPE font_type,
+ const std::string &str);
+ virtual Size GetMultiLinePixelSize(FontSpecInterface::FONT_TYPE font_type,
+diff --git a/src/renderer/unix/text_renderer_interface.h b/src/renderer/unix/text_renderer_interface.h
+index db823217..9c569f6a 100644
+--- a/src/renderer/unix/text_renderer_interface.h
++++ b/src/renderer/unix/text_renderer_interface.h
+@@ -44,7 +44,7 @@ class TextRendererInterface {
+ TextRendererInterface() {}
+ virtual ~TextRendererInterface() {}
+
+- virtual void Initialize(GdkDrawable *drawable) = 0;
++ virtual void Initialize(GtkWidget *window) = 0;
+ // Returns boundary rectangle size of actual rendered text.
+ virtual Size GetPixelSize(FontSpecInterface::FONT_TYPE font_type,
+ const std::string &str) = 0;
+--
+2.36.0
+
diff --git a/misc/fcitx5-mozc/0010-fix-build-gcc11.patch b/misc/fcitx5-mozc/0010-fix-build-gcc11.patch
new file mode 100644
index 0000000000..eea54d6178
--- /dev/null
+++ b/misc/fcitx5-mozc/0010-fix-build-gcc11.patch
@@ -0,0 +1,11 @@
+diff --color -rupN mozc.orig/src/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc mozc/src/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc
+--- mozc.orig/src/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc 2021-03-15 22:29:19.136624465 +0800
++++ mozc/src/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc 2021-03-15 22:29:50.682448271 +0800
+@@ -37,6 +37,7 @@
+
+ #include <algorithm>
+ #include <array>
++#include <limits>
+ #include "absl/base/internal/hide_ptr.h"
+ #include "absl/base/internal/raw_logging.h"
+ #include "absl/base/internal/spinlock.h"
diff --git a/misc/fcitx5-mozc/0011-build-with-libstdc++.patch b/misc/fcitx5-mozc/0011-build-with-libstdc++.patch
new file mode 100644
index 0000000000..f36b595a59
--- /dev/null
+++ b/misc/fcitx5-mozc/0011-build-with-libstdc++.patch
@@ -0,0 +1,12 @@
+diff --git a/src/gyp/common.gypi b/src/gyp/common.gypi
+index 0635068..dd8043e 100644
+--- a/src/gyp/common.gypi
++++ b/src/gyp/common.gypi
+@@ -105,7 +105,6 @@
+ ],
+ # Libraries for GNU/Linux environment.
+ 'linux_ldflags': [
+- '-lc++',
+ '-pthread',
+ ],
+
diff --git a/misc/fcitx5-mozc/0012-mozc-build-gcc.patch b/misc/fcitx5-mozc/0012-mozc-build-gcc.patch
new file mode 100644
index 0000000000..5d8f74faff
--- /dev/null
+++ b/misc/fcitx5-mozc/0012-mozc-build-gcc.patch
@@ -0,0 +1,27 @@
+Index: b/gyp/common.gypi
+===================================================================
+--- a/gyp/common.gypi
++++ b/gyp/common.gypi
+@@ -128,9 +128,9 @@
+ 'compiler_host_version_int': 304, # Clang 3.4 or higher
+ }],
+ ['target_platform=="Linux"', {
+- 'compiler_target': 'clang',
++ 'compiler_target': 'gcc',
+ 'compiler_target_version_int': 304, # Clang 3.4 or higher
+- 'compiler_host': 'clang',
++ 'compiler_host': 'gcc',
+ 'compiler_host_version_int': 304, # Clang 3.4 or higher
+ }],
+ ],
+@@ -445,8 +445,8 @@
+ ['target_platform=="Linux"', {
+ 'make_global_settings': [
+ ['AR', '<!(which ar)'],
+- ['CC', '<!(which clang)'],
+- ['CXX', '<!(which clang++)'],
++ ['CC', '<!(which gcc)'],
++ ['CXX', '<!(which g++)'],
+ ['LD', '<!(which ld)'],
+ ['NM', '<!(which nm)'],
+ ['READELF', '<!(which readelf)'],
diff --git a/misc/fcitx5-mozc/README b/misc/fcitx5-mozc/README
new file mode 100644
index 0000000000..c28cca4c8c
--- /dev/null
+++ b/misc/fcitx5-mozc/README
@@ -0,0 +1,17 @@
+Fcitx5-mozc is Mozc engine for fcitx5.
+Mozc is a Japanese Input Method Editor (IME) designed for multi-platform
+
+What's Mozc?
+For historical reasons, the project name Mozc has two different meanings
+
+Internal code name of Google Japanese Input that is still commonly used
+inside Google.
+Project name to release a subset of Google Japanese Input in the form of
+ source code under OSS license without any warranty nor user support.
+In this repository, Mozc means the second definition unless otherwise
+noted.
+
+Detailed differences between Google Japanese Input and Mozc are
+described in About Branding.
+( https://github.com/fcitx/mozc/blob/fcitx/docs/about_branding.md )
+
diff --git a/misc/fcitx5-mozc/README.emacs b/misc/fcitx5-mozc/README.emacs
new file mode 100644
index 0000000000..95e994333c
--- /dev/null
+++ b/misc/fcitx5-mozc/README.emacs
@@ -0,0 +1,5 @@
+# for emacs, create {HOME}/.emacs.d/init.el with followng lines
+
+(require 'mozc) ; or (load-file "/path/to/mozc.el")
+(setq default-input-method "japanese-mozc")
+(setq mozc-candidate-style 'overlay)
diff --git a/misc/fcitx5-mozc/fcitx5-mozc.SlackBuild b/misc/fcitx5-mozc/fcitx5-mozc.SlackBuild
new file mode 100644
index 0000000000..2d679c9fce
--- /dev/null
+++ b/misc/fcitx5-mozc/fcitx5-mozc.SlackBuild
@@ -0,0 +1,216 @@
+#!/bin/bash
+
+# Slackware build script for bazel
+
+# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5-mozc
+VERSION=${VERSION:-2.26.4360.102.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+BLDBASEDIR=$TMP/$PRGNAM-$VERSION
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+BLDTYPE=Release
+_bldtype=Release
+
+# source rev. and version.
+MOZC_REV=ca82d39d08df3359fdf5c653a1f56b3e95cbe2ce
+GYP_REV=caa60026e223fc501e8b337fd5086ece4028b1c6
+PROTOBUF_REV=fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a
+ABSEIL_CPP_REV=0f3bb466b868b523cf1dc9b2aaaed65c77b28862
+BREAKPAD_REV=2022.07.12
+GOOGLETEST_REV=703bd9caab50b139428cea1aaff9974ebee5742e
+JSONCPP_REV=42e892d96e47b1f6e29844cc705e148ec4856448
+JAPANESE_USAGE_DICT_REV=e5b3425575734c323e1d947009dd74709437b684
+ZIPCODE_REL=202110
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir -p $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+echo "prepare source file..."
+# unzip packages
+unzip $CWD/mozc-$MOZC_REV.zip
+unzip $CWD/gyp-$GYP_REV.zip
+unzip $CWD/protobuf-$PROTOBUF_REV.zip
+unzip $CWD/abseil-cpp-$ABSEIL_CPP_REV.zip
+unzip $CWD/breakpad-${BREAKPAD_REV}.zip
+unzip $CWD/googletest-$GOOGLETEST_REV.zip
+unzip $CWD/jsoncpp-$JSONCPP_REV.zip
+unzip $CWD/japanese-usage-dictionary-$JAPANESE_USAGE_DICT_REV.zip
+unzip $CWD/jigyosyo-$ZIPCODE_REL.zip
+unzip $CWD/x-ken-all-$ZIPCODE_REL.zip
+# extact tar file
+tar -xvf ${CWD}/fcitx-mozc-icon.tar.gz
+
+# rename directory
+mv mozc-$MOZC_REV mozc
+mv gyp-$GYP_REV gyp
+mv protobuf-$PROTOBUF_REV protobuf
+mv abseil-cpp-$ABSEIL_CPP_REV abseil-cpp
+mv breakpad-$BREAKPAD_REV breakpad
+mv googletest-$GOOGLETEST_REV googletest
+mv jsoncpp-$JSONCPP_REV jsoncpp
+mv japanese-usage-dictionary-$JAPANESE_USAGE_DICT_REV japanese_usage_dictionary
+
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+cd $BLDBASEDIR/mozc
+# prepare zip code dictionary
+unzip -d src/data/dictionary_oss $CWD/jigyosyo-$ZIPCODE_REL.zip
+unzip -d src/data/dictionary_oss $CWD/x-ken-all-$ZIPCODE_REL.zip
+
+cd src/dictionary
+# Generate zip code seed
+sed -i "s/from dictionary import zip_code_util/import zip_code_util/g" gen_zip_code_seed.py
+
+cd ../data/dictionary_oss
+echo "Generating zip code seed ..."
+python3 ../../dictionary/gen_zip_code_seed.py --zip_code=x-ken-all.csv --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt
+echo "Done."
+
+cd $BLDBASEDIR/mozc/scripts
+# Use python3 instead of python in slackware
+sed 's/python/python3/g' -i build
+# fix libdir path of fcitx5-mozc.so for Slackware
+sed 's/lib/lib64/g' -i install_fcitx5
+
+cd ../src
+# We won't need fcitx4 (disable fcitx4 target)
+rm unix/fcitx/fcitx.gyp
+
+cd ../../
+# Copy third party deps
+echo "Copy third party deps ..."
+for dep in abseil-cpp breakpad googletest jsoncpp gyp protobuf japanese_usage_dictionary
+do
+ cp -a $dep mozc/src/third_party/
+done
+
+cd $BLDBASEDIR/mozc/
+# Enable verbose build
+echo "... Apply 0005-Enable-verbose-build.patch"
+patch -p1 < $CWD/0005-Enable-verbose-build.patch
+# Use Gtk3 instead of Gtk2
+echo "... Apply 0008-renderer-Convert-Gtk2-to-Gtk3.patch"
+patch -p1 < $CWD/0008-renderer-Convert-Gtk2-to-Gtk3.patch
+# Fix build with gcc-11
+echo "... Apply 0010-fix-build-gcc11.patch"
+patch -p1 < $CWD/0010-fix-build-gcc11.patch
+# Buil with libstdc++
+echo "... Apply 0011-build-with-libstdc++.patch"
+patch -p1 < $CWD/0011-build-with-libstdc++.patch
+
+cd src/
+# Build with gcc instead of clang
+echo "... Apply 0012-mozc-build-gcc.patch"
+patch -p1 < $CWD/0012-mozc-build-gcc.patch
+
+# Fix compatibility with google-glog 0.3.3 (symbol conflict)
+CFLAGS="${CFLAGS} -fvisibility=hidden"
+CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
+
+# build package with gyp
+echo "build package..."
+_buildtype=Release
+TARGETS="unix/emacs/emacs.gyp:mozc_emacs_helper server/server.gyp:mozc_server gui/gui.gyp:mozc_tool unix/fcitx5/fcitx5.gyp:fcitx5-mozc"
+_targets="unix/emacs/emacs.gyp:mozc_emacs_helper server/server.gyp:mozc_server gui/gui.gyp:mozc_tool unix/fcitx5/fcitx5.gyp:fcitx5-mozc"
+
+sed -i 's|python|python3|' ../scripts/build_fcitx5
+QT_BASE_PATH=/usr/include/qt5 QTDIR=/usr GYP_DEFINES="document_dir=/usr/share/licenses/$PRGNAM use_libzinnia=1" python3 build_mozc.py gyp
+python3 build_mozc.py build -c $_bldtype $_targets
+
+
+# Extract license part of mozc
+head -n 29 server/mozc_server.cc > LICENSE
+
+export PREFIX="$PKG/usr"
+export _bldtype
+bash ../scripts/install_server
+
+install -d "$PKG/usr/share/licenses/$PRGNAM/"
+install -m 644 LICENSE data/installer/*.html "$PKG/usr/share/licenses/$PRGNAM/"
+
+install -d "${PREFIX}/share/fcitx5/addon"
+install -d "${PREFIX}/share/fcitx5/inputmethod"
+install -d "${PREFIX}/lib64/fcitx5"
+bash ../scripts/install_fcitx5
+
+# Install emacs_helper
+install -Dm644 ../LICENSE $PKG/usr/share/licenses/emacs-mozc/LICENSE
+install -Dm644 data/installer/credits_en.html $PKG/usr/share/licenses/emacs-mozc/credits_en.html
+install -Dm755 out_linux/Release/mozc_emacs_helper $PKG/usr/bin/mozc_emacs_helper
+install -Dm644 unix/emacs/mozc.el $PKG/usr/share/emacs/site-lisp/mozc.el
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+
+cp $CWD/init.el_mozc $CWD/README.emacs $PKG/usr/doc/$PRGNAM-$VERSION/
+cp $CWD/*.patch $PKG/usr/doc/$PRGNAM-$VERSION/
+cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+# install slack-desc
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/misc/fcitx5-mozc/fcitx5-mozc.info b/misc/fcitx5-mozc/fcitx5-mozc.info
new file mode 100644
index 0000000000..8370af3566
--- /dev/null
+++ b/misc/fcitx5-mozc/fcitx5-mozc.info
@@ -0,0 +1,30 @@
+PRGNAM="fcitx5-mozc"
+VERSION="2.26.4360.102.1"
+HOMEPAGE="https://github.com/fcitx/mozc/"
+DOWNLOAD="https://github.com/fcitx/mozc/archive/ca82d39d08df3359fdf5c653a1f56b3e95cbe2ce/mozc-ca82d39d08df3359fdf5c653a1f56b3e95cbe2ce.zip \
+ https://github.com/chromium/gyp/archive/caa60026e223fc501e8b337fd5086ece4028b1c6/gyp-caa60026e223fc501e8b337fd5086ece4028b1c6.zip \
+ https://github.com/protocolbuffers/protobuf/archive/fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a/protobuf-fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a.zip \
+ https://github.com/abseil/abseil-cpp/archive/0f3bb466b868b523cf1dc9b2aaaed65c77b28862/abseil-cpp-0f3bb466b868b523cf1dc9b2aaaed65c77b28862.zip \
+ https://github.com/google/breakpad/archive/v2022.07.12/breakpad-2022.07.12.zip \
+ https://github.com/google/googletest/archive/703bd9caab50b139428cea1aaff9974ebee5742e/googletest-703bd9caab50b139428cea1aaff9974ebee5742e.zip \
+ https://github.com/open-source-parsers/jsoncpp/archive/42e892d96e47b1f6e29844cc705e148ec4856448/jsoncpp-42e892d96e47b1f6e29844cc705e148ec4856448.zip \
+ https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/e5b3425575734c323e1d947009dd74709437b684/japanese-usage-dictionary-e5b3425575734c323e1d947009dd74709437b684.zip \
+ https://osdn.net/projects/ponsfoot-aur/storage/mozc/jigyosyo-202110.zip \
+ https://osdn.net/projects/ponsfoot-aur/storage/mozc/x-ken-all-202110.zip \
+ https://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-icon.tar.gz"
+MD5SUM="257fcb244249a3c65c576cceb5cbb7c8 \
+ 699c5af5c6d7e19835afb5292d151f91 \
+ cb4b1baed208474284161b7abd5cc17c \
+ 4f23c5fcb19a7ef0fb6ce0f636d480e3 \
+ 981e935b3b61091ca6f968a296f44eb9 \
+ 768da4173ee9df3248b8f828747982ad \
+ b56b146335d7c296ddef5a88235f1438 \
+ a6eb1da9ad7ceffcb9683003332abf7e \
+ 35031b342c827861681081e4052b472b \
+ a4b62ae420004b55a72fe6a40bb09ee1 \
+ 80fe2ef127b70649df22d133822ac8a7"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="fcitx5 bazel"
+MAINTAINER="JW(Shinichi Abe)"
+EMAIL="shin1.abe@nifty.com"
diff --git a/misc/fcitx5-mozc/init.el_mozc b/misc/fcitx5-mozc/init.el_mozc
new file mode 100644
index 0000000000..d44689a094
--- /dev/null
+++ b/misc/fcitx5-mozc/init.el_mozc
@@ -0,0 +1,4 @@
+(set-language-environment "Japanese")
+(require 'mozc) ; or (load-file "/usr/share/emacs/site-lisp/emacs-mozc/mozc.el")
+(setq default-input-method "japanese-mozc")
+(setq mozc-candidate-style 'overlay)
diff --git a/misc/fcitx5-mozc/slack-desc b/misc/fcitx5-mozc/slack-desc
new file mode 100644
index 0000000000..a5613dfaf2
--- /dev/null
+++ b/misc/fcitx5-mozc/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5-mozc: fcitx5-mozc (Mozc engine for fcitx5)
+fcitx5-mozc:
+fcitx5-mozc: fcitx5-mozc is Mozc, Japanese input method editor, engine for fcitx5.
+fcitx5-mozc:
+fcitx5-mozc: Homepage: https://fcitx-im.org
+fcitx5-mozc:
+fcitx5-mozc:
+fcitx5-mozc:
+fcitx5-mozc:
+fcitx5-mozc:
+fcitx5-mozc:
diff --git a/misc/fcitx5-qt/README b/misc/fcitx5-qt/README
new file mode 100644
index 0000000000..3dfcdbe776
--- /dev/null
+++ b/misc/fcitx5-qt/README
@@ -0,0 +1,14 @@
+fcitx5-qt is the Qt im-module for fcitx5 and it's needed to use fcitx5
+with Qt-based applications. It currently supports Qt4, Qt5 and Qt6.
+You'll need several Qt modules if you're going to enable Qt5/Qt6
+support, namely QtCore, QtDbus, QtWidgets and QtX11Extras. Qt5 is
+bundled in Slackware, however if you want Qt6 support you're on your
+own; but any app that requires Qt6 on SBo at this point should have
+already pulled all the dependencies in.
+
+Relevant CMake options are ENABLE_QT4, ENABLE_QT5 and ENABLE_QT6.
+Both ENABLE_QT4 and ENABLE_QT5 are turned on by default, and ENABLE_QT6
+is turned off by default; however Slackware has dropped Qt4 in Slackware
+15, so ENABLE_QT4 is turned off in the SlackBuild. You might want to
+turn on/off the flag depending on the Qt version you are using.
+
diff --git a/misc/fcitx5-qt/doinst.sh b/misc/fcitx5-qt/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/misc/fcitx5-qt/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/misc/fcitx5-qt/fcitx5-qt.SlackBuild b/misc/fcitx5-qt/fcitx5-qt.SlackBuild
new file mode 100644
index 0000000000..ed9a5c0802
--- /dev/null
+++ b/misc/fcitx5-qt/fcitx5-qt.SlackBuild
@@ -0,0 +1,105 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5-qt
+VERSION=${VERSION:-5.0.16}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
+ -DENABLE_QT4=Off ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* README* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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
diff --git a/misc/fcitx5-qt/fcitx5-qt.info b/misc/fcitx5-qt/fcitx5-qt.info
new file mode 100644
index 0000000000..c1427a4cdb
--- /dev/null
+++ b/misc/fcitx5-qt/fcitx5-qt.info
@@ -0,0 +1,10 @@
+PRGNAM="fcitx5-qt"
+VERSION="5.0.16"
+HOMEPAGE="https://github.com/fcitx/fcitx5-qt"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-qt/fcitx5-qt-5.0.16.tar.xz"
+MD5SUM="91d3725861edbd1bbe87cedef0bb69e5"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="fcitx5"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/fcitx5-qt/slack-desc b/misc/fcitx5-qt/slack-desc
new file mode 100644
index 0000000000..701a0d8e04
--- /dev/null
+++ b/misc/fcitx5-qt/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5-qt: fcitx5-qt (Qt libraries for Fcitx5)
+fcitx5-qt:
+fcitx5-qt: Qt library and IM module for fcitx5
+fcitx5-qt:
+fcitx5-qt: Homepage: https://fcitx-im.org/wiki/Fcitx_5
+fcitx5-qt:
+fcitx5-qt:
+fcitx5-qt:
+fcitx5-qt:
+fcitx5-qt:
+fcitx5-qt:
diff --git a/misc/fcitx5-table-extra/README b/misc/fcitx5-table-extra/README
new file mode 100644
index 0000000000..a65ebaddbf
--- /dev/null
+++ b/misc/fcitx5-table-extra/README
@@ -0,0 +1,13 @@
+fcitx5-table-extra provides extra table for Fcitx5, including Boshiamy,
+Zhengma, Cangjie, and Quick.
+
+Zhengma's patent is expired at 2009.
+Boshiamy's patent is expired at 2003.11.11.
+Cangjie's author drop Cangjie's patent in 1982.
+
+The code of this package are released under GPLv3 or later.
+
+All the data file is now in public domain.
+
+For expired patent references, see the original README on the website:
+https://github.com/fcitx/fcitx5-table-extra
diff --git a/misc/fcitx5-table-extra/doinst.sh b/misc/fcitx5-table-extra/doinst.sh
new file mode 100644
index 0000000000..ca71fd3c40
--- /dev/null
+++ b/misc/fcitx5-table-extra/doinst.sh
@@ -0,0 +1,12 @@
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
+if [ -e usr/share/glib-2.0/schemas ]; then
+ if [ -x /usr/bin/glib-compile-schemas ]; then
+ /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
+ fi
+fi
+
diff --git a/misc/fcitx5-table-extra/fcitx5-table-extra.SlackBuild b/misc/fcitx5-table-extra/fcitx5-table-extra.SlackBuild
new file mode 100644
index 0000000000..b80947f513
--- /dev/null
+++ b/misc/fcitx5-table-extra/fcitx5-table-extra.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5-table-extra
+VERSION=${VERSION:-5.0.12}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-${VERSION}.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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
diff --git a/misc/fcitx5-table-extra/fcitx5-table-extra.info b/misc/fcitx5-table-extra/fcitx5-table-extra.info
new file mode 100644
index 0000000000..cf923535d7
--- /dev/null
+++ b/misc/fcitx5-table-extra/fcitx5-table-extra.info
@@ -0,0 +1,10 @@
+PRGNAM="fcitx5-table-extra"
+VERSION="5.0.12"
+HOMEPAGE="https://github.com/fcitx/fcitx5-table-extra"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-table-extra/fcitx5-table-extra-5.0.12.tar.xz"
+MD5SUM="d326062fb6caf68fbc227d197523620a"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="libime fcitx5"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/fcitx5-table-extra/slack-desc b/misc/fcitx5-table-extra/slack-desc
new file mode 100644
index 0000000000..5c5f732685
--- /dev/null
+++ b/misc/fcitx5-table-extra/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5-table-extra: fcitx5-table-extra (Extra table input methods for fcitx5)
+fcitx5-table-extra:
+fcitx5-table-extra: fcitx5-table-extra provides extra table for Fcitx5, including
+fcitx5-table-extra: Boshiamy, Zhengma, Cangjie, and Quick.
+fcitx5-table-extra:
+fcitx5-table-extra:
+fcitx5-table-extra:
+fcitx5-table-extra:
+fcitx5-table-extra:
+fcitx5-table-extra: Homepage: https://github.com/fcitx/fcitx5-table-extra
+fcitx5-table-extra:
diff --git a/misc/fcitx5-table-other/README b/misc/fcitx5-table-other/README
new file mode 100644
index 0000000000..85f68343b7
--- /dev/null
+++ b/misc/fcitx5-table-other/README
@@ -0,0 +1,7 @@
+fcitx-table-other provides some other tables for Fcitx, fork from
+ibus-table-others, scim-tables.
+
+Most of the table in this package is non-Chinese table. They are listed
+under /tables by language.
+
+The package is released under GPLv3+.
diff --git a/misc/fcitx5-table-other/doinst.sh b/misc/fcitx5-table-other/doinst.sh
new file mode 100644
index 0000000000..ca71fd3c40
--- /dev/null
+++ b/misc/fcitx5-table-other/doinst.sh
@@ -0,0 +1,12 @@
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
+if [ -e usr/share/glib-2.0/schemas ]; then
+ if [ -x /usr/bin/glib-compile-schemas ]; then
+ /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
+ fi
+fi
+
diff --git a/misc/fcitx5-table-other/fcitx5-table-other.SlackBuild b/misc/fcitx5-table-other/fcitx5-table-other.SlackBuild
new file mode 100644
index 0000000000..d4d581545c
--- /dev/null
+++ b/misc/fcitx5-table-other/fcitx5-table-other.SlackBuild
@@ -0,0 +1,98 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5-table-other
+VERSION=${VERSION:-5.0.10}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+ARCH=noarch
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-${VERSION}.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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
diff --git a/misc/fcitx5-table-other/fcitx5-table-other.info b/misc/fcitx5-table-other/fcitx5-table-other.info
new file mode 100644
index 0000000000..bd818a37a1
--- /dev/null
+++ b/misc/fcitx5-table-other/fcitx5-table-other.info
@@ -0,0 +1,10 @@
+PRGNAM="fcitx5-table-other"
+VERSION="5.0.10"
+HOMEPAGE="https://github.com/fcitx/fcitx5-table-other"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-table-other/fcitx5-table-other-5.0.10.tar.xz"
+MD5SUM="6466cb819068b8caa2bee1e8201d4ca4"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="libime fcitx5"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/fcitx5-table-other/slack-desc b/misc/fcitx5-table-other/slack-desc
new file mode 100644
index 0000000000..600f1a9a4a
--- /dev/null
+++ b/misc/fcitx5-table-other/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5-table-other: fcitx5-table-other (Some other tables for fcitx5)
+fcitx5-table-other:
+fcitx5-table-other: fcitx-table-other provides some other tables for Fcitx, fork from
+fcitx5-table-other: ibus-table-others, scim-tables.
+fcitx5-table-other:
+fcitx5-table-other: Most of the table in this package is non-Chinese table. They are
+fcitx5-table-other: listed under /tables by language.
+fcitx5-table-other:
+fcitx5-table-other:
+fcitx5-table-other: Homepage: https://github.com/fcitx/fcitx5-table-other
+fcitx5-table-other:
diff --git a/misc/fcitx5/README b/misc/fcitx5/README
new file mode 100644
index 0000000000..bd043ee147
--- /dev/null
+++ b/misc/fcitx5/README
@@ -0,0 +1,37 @@
+Fcitx is an input method framework with extension support. Currently it
+supports Linux and Unix systems like freebsd. Fcitx supports typing
+with many languages all over the world with a large number of engines.
+
+Fcitx has a slim core while provides powerful features with addons. It
+is easy to customize fcitx to satisfy your own needs.
+
+Fcitx5 is the next generation of fcitx.
+
+Some cmake options to keep in mind before building are:
+
+- ENABLE_WAYLAND: Wayland support. Defaults to On and should be fine
+ for desktop environments such as KDE and GNOME. Users running
+ X11-based window managers will need to turn it off.
+
+- ENABLE_ENCHANT: Enchant support. Defaults to On. Used for word
+ prediction (hinting). Depends on libenchant, which is provided by
+ most distributions.
+
+The user is encouraged to check the contents of CMakeLists.txt for an
+exhaustive list of options.
+
+For example, an i3 user who wishes to install it to /opt would run
+(likely with sudo privileges):
+
+ cmake -DENABLE_WAYLAND=Off \
+ -DCMAKE_INSTALL_PREFIX=/your/install/path .
+ make
+ sudo make install
+
+To make fcitx5 the default input method, please add these lines to your
+/etc/environment (or .profile):
+
+ GTK_IM_MODULE=fcitx
+ QT_IM_MODULE=fcitx
+ XMODIFIERS=@im=fcitx
+
diff --git a/misc/fcitx5/doinst.sh b/misc/fcitx5/doinst.sh
new file mode 100644
index 0000000000..138e27de17
--- /dev/null
+++ b/misc/fcitx5/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
diff --git a/misc/fcitx5/fcitx5-autostart b/misc/fcitx5/fcitx5-autostart
new file mode 100644
index 0000000000..22d8c056d3
--- /dev/null
+++ b/misc/fcitx5/fcitx5-autostart
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+START="no"
+
+if [ "$XIM" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$XIM_PROGRAM" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$GTK_IM_MODULE" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$QT_IM_MODULE" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$START" = "no" ]; then
+ exit 0
+fi
+
+# sleep for a little while to avoid duplicate startup
+sleep 2
+
+# Test whether fcitx is running correctly with dbus...
+fcitx5-remote > /dev/null 2>&1
+
+if [ $? = "1" ]; then
+ echo "Fcitx seems is not running"
+ fcitx5
+else
+ echo "Fcitx is running correctly."
+fi
diff --git a/misc/fcitx5/fcitx5.SlackBuild b/misc/fcitx5/fcitx5.SlackBuild
new file mode 100644
index 0000000000..9649f3653b
--- /dev/null
+++ b/misc/fcitx5/fcitx5.SlackBuild
@@ -0,0 +1,110 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=fcitx5
+VERSION=${VERSION:-5.0.21}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-${VERSION}_dict.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+
+# Use our own autostart script to autostart fcitx5
+install -m 755 $CWD/fcitx5-autostart $PKG/usr/bin/
+sed -i "s|Exec=/usr/bin/fcitx5|Exec=/usr/bin/fcitx5-autostart|" \
+ $PKG/etc/xdg/autostart/org.fcitx.Fcitx5.desktop
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* README* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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
diff --git a/misc/fcitx5/fcitx5.info b/misc/fcitx5/fcitx5.info
new file mode 100644
index 0000000000..94cd2c320c
--- /dev/null
+++ b/misc/fcitx5/fcitx5.info
@@ -0,0 +1,10 @@
+PRGNAM="fcitx5"
+VERSION="5.0.21"
+HOMEPAGE="https://fcitx-im.org/wiki/Fcitx_5"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5/fcitx5-5.0.21_dict.tar.xz"
+MD5SUM="41f626e3a6492d4c5958a53a2de21fd8"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="fmt xcb-imdkit"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/fcitx5/slack-desc b/misc/fcitx5/slack-desc
new file mode 100644
index 0000000000..eaccae7994
--- /dev/null
+++ b/misc/fcitx5/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fcitx5: fcitx5 (Input Method Framework)
+fcitx5:
+fcitx5: Fcitx is an input method framework with extension support. Currently
+fcitx5: it supports Linux and Unix systems like freebsd. It has three built-
+fcitx5: in Input Method Engine, Pinyin, QuWei and Table-based input methods.
+fcitx5: Fcitx tries to provide a native feeling under all desktop as well as
+fcitx5: a light weight core. You can easily customize it to fit your
+fcitx5: requirements.
+fcitx5:
+fcitx5: Homepage: https://fcitx-im.org/wiki/Fcitx_5
+fcitx5:
diff --git a/misc/ghostpcl/ghostpcl.SlackBuild b/misc/ghostpcl/ghostpcl.SlackBuild
index 283799c709..aa5b9fb67c 100644
--- a/misc/ghostpcl/ghostpcl.SlackBuild
+++ b/misc/ghostpcl/ghostpcl.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ghostpcl
SRCNAM=ghostpdl
-VERSION=${VERSION:-9.56.1}
+VERSION=${VERSION:-10.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
diff --git a/misc/ghostpcl/ghostpcl.info b/misc/ghostpcl/ghostpcl.info
index bd364a1f5e..46bcbce22c 100644
--- a/misc/ghostpcl/ghostpcl.info
+++ b/misc/ghostpcl/ghostpcl.info
@@ -1,8 +1,8 @@
PRGNAM="ghostpcl"
-VERSION="9.56.1"
+VERSION="10.0.0"
HOMEPAGE="https://www.ghostscript.com"
-DOWNLOAD="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9561/ghostpdl-9.56.1.tar.gz"
-MD5SUM="0d6000469e50a3fc3ead72ded05562a6"
+DOWNLOAD="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs1000/ghostpdl-10.0.0.tar.gz"
+MD5SUM="4710d9434f6264d4537295677576eb47"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/misc/gourmet/gourmet.SlackBuild b/misc/gourmet/gourmet.SlackBuild
index 856bce54d9..f5bc4ec69b 100644
--- a/misc/gourmet/gourmet.SlackBuild
+++ b/misc/gourmet/gourmet.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gourmet
VERSION=${VERSION:-0.17.4}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
diff --git a/misc/gourmet/gourmet.info b/misc/gourmet/gourmet.info
index 3fc74822ab..c0639215e9 100644
--- a/misc/gourmet/gourmet.info
+++ b/misc/gourmet/gourmet.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/thinkle/gourmet/archive/0.17.4.tar.gz"
MD5SUM="937334364abc3093709a604c1d473e9f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="SQLAlchemy lxml python-distutils-extra reportlab pygtkspell gst0-python python2-elib.intl pypoppler"
+REQUIRES="SQLAlchemy lxml python-distutils-extra python2-reportlab pygtkspell gst0-python python2-elib.intl pypoppler"
MAINTAINER="Erwin van Zanten"
EMAIL="e.van.zanten.evz@gmail.com"
diff --git a/misc/libime/README b/misc/libime/README
new file mode 100644
index 0000000000..7432ef2d94
--- /dev/null
+++ b/misc/libime/README
@@ -0,0 +1,2 @@
+libime is a library to support generic input method implementation.
+
diff --git a/misc/libime/libime.SlackBuild b/misc/libime/libime.SlackBuild
new file mode 100644
index 0000000000..7b0e02df0f
--- /dev/null
+++ b/misc/libime/libime.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=libime
+VERSION=${VERSION:-1.0.16}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-${VERSION}_dict.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $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
diff --git a/misc/libime/libime.info b/misc/libime/libime.info
new file mode 100644
index 0000000000..826f7fd394
--- /dev/null
+++ b/misc/libime/libime.info
@@ -0,0 +1,10 @@
+PRGNAM="libime"
+VERSION="1.0.16"
+HOMEPAGE="https://github.com/fcitx/libime"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/libime/libime-1.0.16_dict.tar.xz"
+MD5SUM="0f271a39f507ef5e6b21952fb304c471"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="fcitx5"
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"
diff --git a/misc/libime/slack-desc b/misc/libime/slack-desc
new file mode 100644
index 0000000000..3ae5132f91
--- /dev/null
+++ b/misc/libime/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+libime: libime (A library to support generic input method implementation)
+libime:
+libime: libime is a library to support generic input method implementation.
+libime: It is required by a number of input methods used by fcitx5.
+libime:
+libime:
+libime:
+libime:
+libime:
+libime: Homepage: https://github.com/fcitx/libime
+libime:
diff --git a/misc/mosquitto/mosquitto.SlackBuild b/misc/mosquitto/mosquitto.SlackBuild
index ccac35fddd..09f54d3bec 100644
--- a/misc/mosquitto/mosquitto.SlackBuild
+++ b/misc/mosquitto/mosquitto.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for mosquitto
-# Copyright 2011-2021 Christoph Willing, Brisbane Australia
+# Copyright 2011-2022 Christoph Willing, Brisbane Australia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mosquitto
-VERSION=${VERSION:-2.0.14}
+VERSION=${VERSION:-2.0.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,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
diff --git a/misc/mosquitto/mosquitto.info b/misc/mosquitto/mosquitto.info
index aae7fcc20a..e78406be90 100644
--- a/misc/mosquitto/mosquitto.info
+++ b/misc/mosquitto/mosquitto.info
@@ -1,8 +1,8 @@
PRGNAM="mosquitto"
-VERSION="2.0.14"
+VERSION="2.0.15"
HOMEPAGE="https://mosquitto.org/"
-DOWNLOAD="https://mosquitto.org/files/source/mosquitto-2.0.14.tar.gz"
-MD5SUM="abe42d8cdb4ec973bdbecc6da29cb98f"
+DOWNLOAD="https://mosquitto.org/files/source/mosquitto-2.0.15.tar.gz"
+MD5SUM="22b7a8b05caa692cb22496b791529193"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/misc/rlwrap/rlwrap.SlackBuild b/misc/rlwrap/rlwrap.SlackBuild
index 60e4c46810..dc80cf1763 100644
--- a/misc/rlwrap/rlwrap.SlackBuild
+++ b/misc/rlwrap/rlwrap.SlackBuild
@@ -9,7 +9,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rlwrap
-VERSION=${VERSION:-0.45.2}
+VERSION=${VERSION:-0.46.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +22,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
diff --git a/misc/rlwrap/rlwrap.info b/misc/rlwrap/rlwrap.info
index b094c58907..5fff7f7bba 100644
--- a/misc/rlwrap/rlwrap.info
+++ b/misc/rlwrap/rlwrap.info
@@ -1,8 +1,8 @@
PRGNAM="rlwrap"
-VERSION="0.45.2"
+VERSION="0.46.1"
HOMEPAGE="https://github.com/hanslub42/rlwrap"
-DOWNLOAD="https://github.com/hanslub42/rlwrap/archive/v0.45.2/rlwrap-0.45.2.tar.gz"
-MD5SUM="3ba62c3759552204131ed656977634f2"
+DOWNLOAD="https://github.com/hanslub42/rlwrap/archive/0.46.1/rlwrap-0.46.1.tar.gz"
+MD5SUM="7c585b2c90765326bc4d21a145575cb9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/misc/swege/README b/misc/swege/README
new file mode 100644
index 0000000000..e62ec2e133
--- /dev/null
+++ b/misc/swege/README
@@ -0,0 +1,23 @@
+swege is a Static WEbsite GEnerator written in C. It leverages the
+discount library for generating a website from a set of Markdown files.
+
+You can obtain a template project from /usr/share/swege-*/example.
+
+Copy the example directory to a location of choice:
+`cp -r /usr/share/swege-*/example ~/mycoolsite`
+
+Enter your directory, edit swege.ini and run swege:
+`cd ~/mycoolsite && $EDITOR swege.ini && swege`
+
+For FAQ, and other information read the project README.md, can be
+found in /usr/share/swege-*/repository-README.md.
+
+-----------------------------------------------------------------------
+
+You have to write two files: the header, and the footer. These get
+added to the top, and the bottom of the rest of the pages of your
+website.
+
+All the Markdown (*.md) files, prior to being copied into the output
+folder, are translated into HTML during "compilation". The rest of the
+files are simply copied to the output folder.
diff --git a/misc/swege/slack-desc b/misc/swege/slack-desc
new file mode 100644
index 0000000000..b40ad4817e
--- /dev/null
+++ b/misc/swege/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|' on
+# the right side marks the last column you can put a character in. You must make
+# exactly 11 lines for the formatting to be correct. It's also customary to
+# leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+swege: swege (Static WEbsite GEnerator)
+swege:
+swege: Bloat free static website generator written in C99.
+swege:
+swege:
+swege:
+swege:
+swege:
+swege:
+swege: https://github.com/sakhmatd/swege
+swege:
diff --git a/misc/swege/swege.SlackBuild b/misc/swege/swege.SlackBuild
new file mode 100644
index 0000000000..771eca9d70
--- /dev/null
+++ b/misc/swege/swege.SlackBuild
@@ -0,0 +1,91 @@
+#!/bin/bash
+
+# Slackware build script for swege
+
+# Copyright 2022 Ivan Kovmir <ikovmir@uninstance.cc>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd "$(dirname "$0")" ; CWD=$(pwd)
+
+PRGNAM=swege
+VERSION=${VERSION:-1.2.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$(uname -m)" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$(uname -m) ;;
+ esac
+fi
+
+if [ -n "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP="${TMP:-/tmp/SBo}"
+SRC="$TMP/$PRGNAM-$VERSION"
+PKG="$TMP/package-$PRGNAM"
+OUTPUT="${OUTPUT:-/tmp}"
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
+set -e
+
+rm -rf "$PKG"
+mkdir -p "$TMP" "$PKG" "$OUTPUT"
+cd "$TMP"
+rm -rf "$PRGNAM-$VERSION"
+tar xvf "$CWD/$PRGNAM-$VERSION.tar.gz"
+cd "$PRGNAM-$VERSION"
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+INSTALL_PREFIX="/usr"
+
+CFLAGS="$SLKCFLAGS" make
+DESTDIR="$PKG" PREFIX="$INSTALL_PREFIX" make install
+strip -s "$PKG$INSTALL_PREFIX/bin/$PRGNAM"
+
+mkdir -p "$PKG/install"
+mkdir -p "$PKG/usr/doc/$PRGNAM-$VERSION"
+mkdir -p "$PKG/usr/share/$PRGNAM-$VERSION"
+cp "$CWD/$PRGNAM.SlackBuild" "$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild"
+cp "$CWD/README" "$PKG/usr/doc/$PRGNAM-$VERSION/README"
+cp "$CWD/slack-desc" "$PKG/install/slack-desc"
+
+# Copy useful things directly from the repository folder.
+cp "$SRC/README.md" "$PKG/usr/share/$PRGNAM-$VERSION/repository-README.md"
+cp "$SRC/LICENSE" "$PKG/usr/share/$PRGNAM-$VERSION/LICENSE"
+cp -r "$SRC/example" "$PKG/usr/share/$PRGNAM-$VERSION/example"
+
+cd "$PKG"
+/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
diff --git a/misc/swege/swege.info b/misc/swege/swege.info
new file mode 100644
index 0000000000..0efe056358
--- /dev/null
+++ b/misc/swege/swege.info
@@ -0,0 +1,10 @@
+PRGNAM="swege"
+VERSION="1.2.0"
+HOMEPAGE="https://github.com/sakhmatd/swege"
+DOWNLOAD="https://github.com/sakhmatd/swege/archive/1.2.0/swege-1.2.0.tar.gz"
+MD5SUM="948c56834c2b01447ed4fe57bb99a52b"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="discount"
+MAINTAINER="Ivan Kovmir"
+EMAIL="ikovmir@uninstance.cc"
diff --git a/misc/untldr/README b/misc/untldr/README
index ea6633d4d9..0d4abd291c 100644
--- a/misc/untldr/README
+++ b/misc/untldr/README
@@ -1,2 +1,7 @@
+Command line client for https://tldr.sh/
+
untldr works fully offline, do not forget to run `tldr -u` to fetch the
pages.
+
+`tldr <page_name>` to view a page.
+`tldr -h` to view all the options.
diff --git a/misc/untldr/untldr.SlackBuild b/misc/untldr/untldr.SlackBuild
index 1b1b68ed43..89dcc441f5 100644
--- a/misc/untldr/untldr.SlackBuild
+++ b/misc/untldr/untldr.SlackBuild
@@ -26,7 +26,7 @@ cd "$(dirname "$0")" ; CWD=$(pwd)
PRGNAM=untldr
BINNAM=tldr
-VERSION=${VERSION:-1.0.0}
+VERSION=${VERSION:-1.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -44,19 +44,10 @@ if [ -n "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
-else
- SLKCFLAGS="-O2"
-fi
+TMP="${TMP:-/tmp/SBo}"
+SRC="$TMP/$PRGNAM-$VERSION"
+PKG="$TMP/package-$PRGNAM"
+OUTPUT="${OUTPUT:-/tmp}"
set -e
@@ -64,20 +55,25 @@ rm -rf "$PKG"
mkdir -p "$TMP" "$PKG" "$OUTPUT"
cd "$TMP"
rm -rf $PRGNAM-"$VERSION"
-tar xvf "$CWD"/$PRGNAM-v"$VERSION".tar.gz
+tar xvf "$CWD"/$PRGNAM-"$VERSION".tar.gz
cd $PRGNAM-"$VERSION"
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-make CFLAGS="$SLKCFLAGS"
-make DESTDIR="$PKG" PREFIX="/usr" install
-strip -s "$PKG"/usr/bin/$BINNAM
+make
+DESTDIR="$PKG" PREFIX="/usr" make install
+strip -s "$PKG/usr/bin/$BINNAM"
+
+mkdir -p "$PKG/install"
+mkdir -p "$PKG/usr/doc/$PRGNAM-$VERSION"
+mkdir -p "$PKG/usr/share/$PRGNAM-$VERSION"
+cp "$CWD/$PRGNAM.SlackBuild" "$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild"
+cp "$CWD/README" "$PKG/usr/doc/$PRGNAM-$VERSION/README"
+cp "$CWD/slack-desc" "$PKG/install/slack-desc"
-mkdir -p "$PKG"/install
-mkdir -p "$PKG"/usr/doc/$PRGNAM-"$VERSION"
-cat "$CWD"/$PRGNAM.SlackBuild > "$PKG"/usr/doc/$PRGNAM-"$VERSION"/$PRGNAM.SlackBuild
-cat "$CWD"/README > "$PKG"/usr/doc/$PRGNAM-"$VERSION"/README
-cat "$CWD"/slack-desc > "$PKG"/install/slack-desc
+# Copy certain things directly from the repository.
+cp "$SRC/README.md" "$PKG/usr/share/$PRGNAM-$VERSION/repository-README.md"
+cp "$SRC/LICENSE" "$PKG/usr/share/$PRGNAM-$VERSION/LICENSE"
cd "$PKG"
-/sbin/makepkg -l y -c n "$OUTPUT"/$PRGNAM-"$VERSION"-"$ARCH"-"$BUILD""$TAG"."$PKGTYPE"
+/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
diff --git a/misc/untldr/untldr.info b/misc/untldr/untldr.info
index dee129447b..05153c9b07 100644
--- a/misc/untldr/untldr.info
+++ b/misc/untldr/untldr.info
@@ -1,8 +1,8 @@
PRGNAM="untldr"
-VERSION="1.0.0"
+VERSION="1.1.0"
HOMEPAGE="https://github.com/unInstance/untldr"
-DOWNLOAD="https://github.com/unInstance/untldr/archive/v1.0.0/untldr-v1.0.0.tar.gz"
-MD5SUM="b6c3705dcdde1bbd48e29354df383a3e"
+DOWNLOAD="https://github.com/unInstance/untldr/archive/v1.1.0/untldr-1.1.0.tar.gz"
+MD5SUM="6ebb75d889f1c27f7a215242bdb9b122"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/misc/xcb-imdkit/README b/misc/xcb-imdkit/README
new file mode 100644
index 0000000000..a9aaa69367
--- /dev/null
+++ b/misc/xcb-imdkit/README
@@ -0,0 +1,8 @@
+xcb-imdkit is an implementation of the xim protocol in xcb. Compared
+with the implementation of IMDkit with Xlib, and xim inside Xlib, it
+has a smaller memory footprint, better performance, and is safer on
+malformed clients. And not to say it's all asynchronous and it works
+with xcb.
+
+To build this project, you need: libxcb, xcb-util, xcb-util-keysym,
+which are all included in a full Slackware installation.
diff --git a/misc/xcb-imdkit/slack-desc b/misc/xcb-imdkit/slack-desc
new file mode 100644
index 0000000000..73fec52ff7
--- /dev/null
+++ b/misc/xcb-imdkit/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+xcb-imdkit: xcb-imdkit (implementation of the xim protocol in xcb)
+xcb-imdkit:
+xcb-imdkit: xcb-imdkit is an implementation of the xim protocol in xcb. Compared
+xcb-imdkit: with the implementation of IMDkit with Xlib, and xim inside Xlib, it
+xcb-imdkit: has a smaller memory footprint, better performance, and is safer on
+xcb-imdkit: malformed clients. And not to say it's all asynchronous and it works
+xcb-imdkit: with xcb.
+xcb-imdkit:
+xcb-imdkit: Homepage: https://github.com/fcitx/xcb-imdkit
+xcb-imdkit:
+xcb-imdkit:
diff --git a/misc/xcb-imdkit/xcb-imdkit.SlackBuild b/misc/xcb-imdkit/xcb-imdkit.SlackBuild
new file mode 100644
index 0000000000..279d7d322f
--- /dev/null
+++ b/misc/xcb-imdkit/xcb-imdkit.SlackBuild
@@ -0,0 +1,103 @@
+#!/bin/bash
+
+# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=xcb-imdkit
+VERSION=${VERSION:-1.0.4}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-txz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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 -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* README* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/misc/xcb-imdkit/xcb-imdkit.info b/misc/xcb-imdkit/xcb-imdkit.info
new file mode 100644
index 0000000000..2189981467
--- /dev/null
+++ b/misc/xcb-imdkit/xcb-imdkit.info
@@ -0,0 +1,10 @@
+PRGNAM="xcb-imdkit"
+VERSION="1.0.4"
+HOMEPAGE="https://github.com/fcitx/xcb-imdkit"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/xcb-imdkit/xcb-imdkit-1.0.4.tar.xz"
+MD5SUM="c4cda4c3d5630f6338958e55c2d61327"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="ltlnx"
+EMAIL="ltlnx.tw@gmail.com"