diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2022-08-15 20:23:47 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-08-16 07:00:14 +0200 |
commit | 522fb53c22f6e577cbe07cf3fd8c29a76732d233 (patch) | |
tree | 5c9c598b37ddd5c249eb08fc7f0b42cb77407171 /source | |
parent | 8183d9218bf67795edf21e473650e2247ead2623 (diff) | |
download | current-522fb53c22f6e577cbe07cf3fd8c29a76732d233.tar.gz |
Mon Aug 15 20:23:47 UTC 202220220815202347
a/etc-15.1-x86_64-2.txz: Rebuilt.
Added support for $HOME/.profile.d/*.{csh,sh} scripts.
Thanks to Heinz Wiesinger.
a/mcelog-188-x86_64-1.txz: Upgraded.
kde/fcitx5-configtool-5.0.14-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
kde/fcitx5-theme-breeze-2.0.0-noarch-1.txz: Added.
Thanks to Heinz Wiesinger.
kde/kcm-fcitx-0.5.6-x86_64-4.txz: Removed.
l/fmt-9.0.0-x86_64-1.txz: Added.
Thanks to Steven Voges.
l/librsvg-2.54.4-x86_64-2.txz: Rebuilt.
Removed dangling symlink. Thanks to marav.
n/rsync-3.2.5-x86_64-1.txz: Upgraded.
Added some file-list safety checking that helps to ensure that a rogue
sending rsync can't add unrequested top-level names and/or include recursive
names that should have been excluded by the sender. These extra safety
checks only require the receiver rsync to be updated. When dealing with an
untrusted sending host, it is safest to copy into a dedicated destination
directory for the remote content (i.e. don't copy into a destination
directory that contains files that aren't from the remote host unless you
trust the remote host).
For more information, see:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29154
(* Security fix *)
x/anthy-9100h-x86_64-4.txz: Removed.
x/anthy-unicode-1.0.0.20211224-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx-4.2.9.8-x86_64-3.txz: Removed.
x/fcitx-anthy-0.2.4-x86_64-1.txz: Removed.
x/fcitx-configtool-0.4.10-x86_64-3.txz: Removed.
x/fcitx-hangul-0.3.1-x86_64-3.txz: Removed.
x/fcitx-kkc-0.1.4-x86_64-3.txz: Removed.
x/fcitx-libpinyin-0.5.4-x86_64-2.txz: Removed.
x/fcitx-m17n-0.2.4-x86_64-3.txz: Removed.
x/fcitx-qt5-1.2.7-x86_64-1.txz: Removed.
x/fcitx-sayura-0.1.2-x86_64-3.txz: Removed.
x/fcitx-table-extra-0.3.8-x86_64-3.txz: Removed.
x/fcitx-table-other-0.2.4-x86_64-3.txz: Removed.
x/fcitx-unikey-0.2.7-x86_64-3.txz: Removed.
x/fcitx5-5.0.18-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-anthy-5.0.12-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-chinese-addons-5.0.14-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-gtk-5.0.17-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-hangul-5.0.10-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-kkc-5.0.10-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-m17n-5.0.10-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-qt-5.0.14-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-sayura-5.0.8-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-table-extra-5.0.11-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-table-other-5.0.10-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/fcitx5-unikey-5.0.11-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/ibus-1.5.26-x86_64-2.txz: Rebuilt.
Use correct path to kimpanel in ibus-autostart.
Thanks to Lockywolf.
x/ibus-anthy-1.5.14-x86_64-2.txz: Rebuilt.
Recompiled against anthy-unicode-1.0.0.20211224.
Thanks to Heinz Wiesinger.
x/libime-1.0.13-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
x/m17n-lib-1.8.0-x86_64-5.txz: Rebuilt.
Rebuilt to drop the dependency on anthy-9100h.
Thanks to Heinz Wiesinger.
x/skkdic-20210919-noarch-1.txz: Upgraded.
Thanks to Heinz Wiesinger.
x/x11-skel-7.7-x86_64-9.txz: Rebuilt.
Added imconfig script for selecting the input method.
Thanks to Heinz Wiesinger.
x/xcb-imdkit-1.0.3-x86_64-1.txz: Added.
Thanks to Heinz Wiesinger.
Diffstat (limited to 'source')
89 files changed, 1510 insertions, 911 deletions
diff --git a/source/a/etc/_etc/etc/profile.d/home-profile.d.csh.new b/source/a/etc/_etc/etc/profile.d/home-profile.d.csh.new new file mode 100755 index 00000000..13da1e23 --- /dev/null +++ b/source/a/etc/_etc/etc/profile.d/home-profile.d.csh.new @@ -0,0 +1,9 @@ +#!/bin/csh + +if ( -d "$HOME/.profile.d") then + foreach i ("$HOME"/.profile.d/*.csh) + source "$i" + end +endif + +unsetenv i diff --git a/source/a/etc/_etc/etc/profile.d/home-profile.d.sh.new b/source/a/etc/_etc/etc/profile.d/home-profile.d.sh.new new file mode 100755 index 00000000..23078184 --- /dev/null +++ b/source/a/etc/_etc/etc/profile.d/home-profile.d.sh.new @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ -d "$HOME/.profile.d" ]; then + for i in "$HOME"/.profile.d/*.sh; do + . "$i" + done +fi + +unset i diff --git a/source/a/etc/doinst.sh b/source/a/etc/doinst.sh index bc68952f..f87f9c69 100644 --- a/source/a/etc/doinst.sh +++ b/source/a/etc/doinst.sh @@ -54,6 +54,8 @@ config etc/shells.new config etc/services.new config etc/issue.net.new config etc/nsswitch.conf.new +config etc/profile.d/home-profile.d.csh.new +config etc/profile.d/home-profile.d.sh.new config etc/profile.d/lang.csh.new config etc/profile.d/lang.sh.new config etc/profile.d/z-dot-in-non-root-path.csh.new diff --git a/source/a/etc/etc.SlackBuild b/source/a/etc/etc.SlackBuild index 1bbe1fe0..6da92375 100755 --- a/source/a/etc/etc.SlackBuild +++ b/source/a/etc/etc.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=etc VERSION=15.1 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then diff --git a/source/kde/kcm-fcitx/doinst.sh b/source/kde/fcitx5-configtool/doinst.sh index 5fb28930..4e8ba707 100644 --- a/source/kde/kcm-fcitx/doinst.sh +++ b/source/kde/fcitx5-configtool/doinst.sh @@ -1,3 +1,4 @@ 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/source/x/fcitx-configtool/fcitx-configtool.SlackBuild b/source/kde/fcitx5-configtool/fcitx5-configtool.SlackBuild index afbc128a..396cd308 100755 --- a/source/x/fcitx-configtool/fcitx-configtool.SlackBuild +++ b/source/kde/fcitx5-configtool/fcitx5-configtool.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for fcitx. - # Copyright 2017 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2017, 2020 Patrick J. Volkerding, Sebeka, MN, USA # @@ -26,9 +24,9 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=fcitx-configtool +PKGNAM=fcitx5-configtool VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | cut -f 2- -d _ | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -70,14 +68,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx +PKG=$TMP/package-fcitx5 rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf fcitx-configtool-$VERSION -tar xvf $CWD/fcitx-configtool-${VERSION}.tar.?z || exit 1 -cd fcitx-configtool-$VERSION || exit 1 +rm -rf fcitx5-configtool-$VERSION +tar xvf $CWD/fcitx5-configtool-${VERSION}.tar.?z || exit 1 +cd fcitx5-configtool-$VERSION || exit 1 chown -R root:root . find . \ @@ -93,17 +91,18 @@ cd build -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \ -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ .. + make $NUMJOBS || make || exit 1 make install/strip DESTDIR=$PKG || exit 1 cd .. mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING INSTALL README \ - $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG diff --git a/source/kde/fcitx5-configtool/fcitx5-configtool.url b/source/kde/fcitx5-configtool/fcitx5-configtool.url new file mode 100644 index 00000000..e388e890 --- /dev/null +++ b/source/kde/fcitx5-configtool/fcitx5-configtool.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-configtool/ diff --git a/source/x/fcitx-table-extra/slack-desc b/source/kde/fcitx5-configtool/slack-desc index a7dcf89f..1b4b6942 100644 --- a/source/x/fcitx-table-extra/slack-desc +++ b/source/kde/fcitx5-configtool/slack-desc @@ -6,14 +6,14 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -fcitx-table-extra: fcitx-table-extra (extra tables for fcitx) -fcitx-table-extra: -fcitx-table-extra: fcitx-table-extra provides extra tables for Fcitx, including Boshiamy, -fcitx-table-extra: Zhengma, Cangjie, and Quick. -fcitx-table-extra: -fcitx-table-extra: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-table-extra: -fcitx-table-extra: -fcitx-table-extra: -fcitx-table-extra: -fcitx-table-extra: +fcitx5-configtool: fcitx5-configtool (Plasma config module for Fcitx5) +fcitx5-configtool: +fcitx5-configtool: Plasma/Qt config module 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/source/kde/fcitx5-theme-breeze/fcitx5-theme-breeze.SlackBuild b/source/kde/fcitx5-theme-breeze/fcitx5-theme-breeze.SlackBuild new file mode 100755 index 00000000..f08ba8c9 --- /dev/null +++ b/source/kde/fcitx5-theme-breeze/fcitx5-theme-breeze.SlackBuild @@ -0,0 +1,67 @@ +#!/bin/sh + +# Copyright 2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2022 Patrick J. Volkerding, Sebeka, MN, USA +# 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) + +PKGNAM=fcitx5-theme-breeze +VERSION=${VERSION:-$(echo fcitx5-breeze-prebuilt-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +BUILD=${BUILD:-1} + +ARCH=noarch + +# 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +echo "Version: $VERSION" + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf fcitx5-breeze +tar xvf $CWD/fcitx5-breeze-prebuilt-$VERSION.tar.?z || exit 1 +cd fcitx5-breeze || 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 {} \+ + +./install.sh "$PKG/usr" + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSE README* $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/kde/fcitx5-theme-breeze/fcitx5-theme-breeze.url b/source/kde/fcitx5-theme-breeze/fcitx5-theme-breeze.url new file mode 100644 index 00000000..eda6d1b0 --- /dev/null +++ b/source/kde/fcitx5-theme-breeze/fcitx5-theme-breeze.url @@ -0,0 +1 @@ +https://github.com/scratch-er/fcitx5-breeze/releases diff --git a/source/kde/fcitx5-theme-breeze/slack-desc b/source/kde/fcitx5-theme-breeze/slack-desc new file mode 100644 index 00000000..a06a3bc3 --- /dev/null +++ b/source/kde/fcitx5-theme-breeze/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-theme-breeze: fcitx5-theme-breeze (Fcitx5 breeze theme) +fcitx5-theme-breeze: +fcitx5-theme-breeze: Fcitx5 theme to match KDE's Breeze style. +fcitx5-theme-breeze: +fcitx5-theme-breeze: Homepage: https://github.com/scratch-er/fcitx5-breeze +fcitx5-theme-breeze: +fcitx5-theme-breeze: +fcitx5-theme-breeze: +fcitx5-theme-breeze: +fcitx5-theme-breeze: +fcitx5-theme-breeze: diff --git a/source/kde/kcm-fcitx/destroy-erroroverlay-with-base-widget.patch b/source/kde/kcm-fcitx/destroy-erroroverlay-with-base-widget.patch deleted file mode 100644 index dfb7c451..00000000 --- a/source/kde/kcm-fcitx/destroy-erroroverlay-with-base-widget.patch +++ /dev/null @@ -1,46 +0,0 @@ -From b955a9fc005682ccde57aad3de68405e944f4cf7 Mon Sep 17 00:00:00 2001 -From: Weng Xuetian <wengxt@gmail.com> -Date: Fri, 11 Dec 2020 12:44:32 -0800 -Subject: [PATCH] Destroy the error erroroverlay with base widget - -Fix #19 ---- - src/erroroverlay.cpp | 3 ++- - src/erroroverlay.h | 3 ++- - 2 files changed, 4 insertions(+), 2 deletions(-) - -diff --git a/src/erroroverlay.cpp b/src/erroroverlay.cpp -index efef8f5..0f85fbd 100644 ---- a/src/erroroverlay.cpp -+++ b/src/erroroverlay.cpp -@@ -60,7 +60,8 @@ ErrorOverlay::ErrorOverlay(QWidget *baseWidget, QWidget *parent) : - setAutoFillBackground(true); - - m_BaseWidget->installEventFilter(this); -- -+ // Destory overlay with the base widget. -+ connect(m_BaseWidget, SIGNAL(destroyed()), this, SLOT(deleteLater())); - connect(Fcitx::Global::instance(), SIGNAL(connectStatusChanged(bool)), this, SLOT(onConnectStatusChanged(bool))); - onConnectStatusChanged(Fcitx::Global::instance()->inputMethodProxy() != 0); - } -diff --git a/src/erroroverlay.h b/src/erroroverlay.h -index cf8aeaf..847b456 100644 ---- a/src/erroroverlay.h -+++ b/src/erroroverlay.h -@@ -21,6 +21,7 @@ - #define ERROROVERLAY_H - - #include <QWidget> -+#include <QPointer> - - class ErrorOverlay : public QWidget - { -@@ -38,7 +39,7 @@ public slots: - void reposition(); - - private: -- QWidget *m_BaseWidget; -+ QPointer<QWidget> m_BaseWidget; - bool m_enable; - }; - diff --git a/source/kde/kcm-fcitx/kcm-fcitx.url b/source/kde/kcm-fcitx/kcm-fcitx.url deleted file mode 100644 index 31f0ec4e..00000000 --- a/source/kde/kcm-fcitx/kcm-fcitx.url +++ /dev/null @@ -1 +0,0 @@ -http://github.com/fcitx/kcm-fcitx diff --git a/source/kde/kcm-fcitx/slack-desc b/source/kde/kcm-fcitx/slack-desc deleted file mode 100644 index a9eda5c2..00000000 --- a/source/kde/kcm-fcitx/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -kcm-fcitx: kcm-fcitx (KDE config module for Fcitx) -kcm-fcitx: -kcm-fcitx: kcm-fcitx is a configuration tool that is highly integrated with KDE. -kcm-fcitx: -kcm-fcitx: Features: -kcm-fcitx: - Change input method list -kcm-fcitx: - Change global configuration -kcm-fcitx: - Change addon configuration and enable/disable addon. -kcm-fcitx: - Download skin from kde-look.org -kcm-fcitx: -kcm-fcitx: Homepage: http://fcitx-im.org/wiki/Kcm diff --git a/source/kde/kcm-fcitx/kcm-fcitx.SlackBuild b/source/l/fmt/fmt.SlackBuild index 6a39b0cd..f73fb102 100755 --- a/source/kde/kcm-fcitx/kcm-fcitx.SlackBuild +++ b/source/l/fmt/fmt.SlackBuild @@ -1,10 +1,8 @@ #!/bin/bash -# Slackware build script for kcm-fcitx - -# Copyright 2012 vvoody <vvoodywang@gmail.com> -# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA -# +# Copyright 2019-2021 Hunter Sezen California, USA +# Copyright 2022 Steven Voges <svoges.sbo@gmail.com> +# Copyright 2022 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,9 +24,9 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=kcm-fcitx -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | cut -f 2- -d _ | rev)} -BUILD=${BUILD:-4} +PKGNAM=fmt +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -47,6 +45,9 @@ fi if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -54,7 +55,7 @@ elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" elif [ "$ARCH" = "armv7hl" ]; then - SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" LIBDIRSUFFIX="" else SLKCFLAGS="-O2" @@ -70,14 +71,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx +PKG=$TMP/package-fmt rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf kcm-fcitx-$VERSION -tar xvf $CWD/kcm-fcitx-${VERSION}.tar.?z || exit 1 -cd kcm-fcitx-$VERSION || exit 1 +rm -rf fmt-$VERSION +tar xvf $CWD/fmt-$VERSION.tar.?z || exit 1 +cd fmt-$VERSION || exit 1 chown -R root:root . find . \ @@ -86,27 +87,29 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -zcat $CWD/destroy-erroroverlay-with-base-widget.patch.gz | patch -p1 --verbose || exit 1 - -mkdir build +mkdir -p build cd build - cmake -DCMAKE_C_FLAGS:STRING=${SLKCFLAGS} \ - -DCMAKE_CXX_FLAGS:STRING=${SLKCFLAGS} \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ - .. - make $NUMJOBS - make install DESTDIR=$PKG + cmake \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_SKIP_RPATH=TRUE \ + -DCMAKE_BUILD_TYPE=Release \ + -DFMT_TEST=OFF \ + .. + make $NUMJOBS || make || exit 1 + make install/strip DESTDIR=$PKG || exit 1 cd .. -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +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/$PKGNAM-$VERSION -cp -a COPYING README $PKG/usr/doc/$PKGNAM-$VERSION +cp -a CONTRIBUTING.md ChangeLog.rst LICENSE.rst README.rst \ + $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install -zcat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG diff --git a/source/l/fmt/fmt.url b/source/l/fmt/fmt.url new file mode 100644 index 00000000..546cb366 --- /dev/null +++ b/source/l/fmt/fmt.url @@ -0,0 +1 @@ +https://github.com/fmtlib/fmt/releases/ diff --git a/source/l/fmt/slack-desc b/source/l/fmt/slack-desc new file mode 100644 index 00000000..01b96bb2 --- /dev/null +++ b/source/l/fmt/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------------------------------------------------------| +fmt: fmt (A modern formatting library) +fmt: +fmt: {fmt} is an open-source formatting library for C++. It can be used as +fmt: a safe and fast alternative to (s)printf and iostreams. +fmt: +fmt: Homepage: https://fmt.dev/ +fmt: +fmt: +fmt: +fmt: +fmt: diff --git a/source/l/librsvg/librsvg.SlackBuild b/source/l/librsvg/librsvg.SlackBuild index 82f83f46..b1f21f3e 100755 --- a/source/l/librsvg/librsvg.SlackBuild +++ b/source/l/librsvg/librsvg.SlackBuild @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2008, 2009, 2010, 2016, 2018 Patrick Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2016, 2018, 2022 Patrick Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=librsvg VERSION=${VERSION:-$(echo librsvg-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -121,7 +121,9 @@ mkdir -p $PKG/usr/doc/librsvg-$VERSION cp -a \ AUTHORS COPYING* NEWS README* TODO \ $PKG/usr/doc/librsvg-$VERSION -( cd $PKG/usr/doc/librsvg-$VERSION ; ln -s /usr/share/gtk-doc/html/rsvg-2.0/ html ) +if [ -d $PKG/usr/share/gtk-doc/html/rsvg-2.0 ]; then + ( cd $PKG/usr/doc/librsvg-$VERSION ; ln -s /usr/share/gtk-doc/html/rsvg-2.0/ html ) +fi # If there's a ChangeLog, installing at least part of the recent history # is useful, but don't let it get totally out of control: diff --git a/source/x/anthy/anthy.SlackBuild b/source/x/anthy-unicode/anthy-unicode.SlackBuild index 9ba974ff..af7fa15f 100755 --- a/source/x/anthy/anthy.SlackBuild +++ b/source/x/anthy-unicode/anthy-unicode.SlackBuild @@ -21,22 +21,12 @@ # 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. -# ----------------------------------------------------------------------------- -# -# Slackware SlackBuild script -# =========================== -# By: Eric Hameleers <alien@slackware.com> -# For: anthy -# Descr: a system for Japanese input method -# URL: http://anthy.sourceforge.jp/ -# -# ----------------------------------------------------------------------------- cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=anthy +PKGNAM=anthy-unicode VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-4} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -109,6 +99,9 @@ make DESTDIR=$PKG install || exit 1 # Don't ship .la files: rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la +# Don't clobber config files +mv $PKG/etc/anthy-unicode.conf $PKG/etc/anthy-unicode.conf.new + # Add documentation: mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -a \ @@ -116,30 +109,14 @@ cp -a \ $PKG/usr/doc/$PKGNAM-$VERSION find $PKG/usr/doc -type f -exec chmod 644 {} \+ -# If there's a ChangeLog, installing at least part of the recent history -# is useful, but don't let it get totally out of control: -if [ -r ChangeLog ]; then - DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION) - cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog - touch -r ChangeLog $DOCSDIR/ChangeLog -fi - -# Compress the man page(s): -if [ -d $PKG/usr/man ]; then - find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \+ - for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -fi - # Strip binaries: find $PKG | xargs file | grep -e "executable" -e "shared object" \ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null # Add a package description: mkdir -p $PKG/install +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc -if [ -f $CWD/doinst.sh ]; then - cat $CWD/doinst.sh >> $PKG/install/doinst.sh -fi # Build the package: cd $PKG diff --git a/source/x/anthy-unicode/anthy-unicode.url b/source/x/anthy-unicode/anthy-unicode.url new file mode 100644 index 00000000..633181be --- /dev/null +++ b/source/x/anthy-unicode/anthy-unicode.url @@ -0,0 +1 @@ +https://github.com/fujiwarat/anthy-unicode/releases diff --git a/source/x/anthy-unicode/doinst.sh b/source/x/anthy-unicode/doinst.sh new file mode 100644 index 00000000..cc7172da --- /dev/null +++ b/source/x/anthy-unicode/doinst.sh @@ -0,0 +1,15 @@ +#!/bin/sh +config() { + NEW="$1" + OLD="`dirname $NEW`/`basename $NEW .new`" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/anthy-unicode.conf.new + diff --git a/source/x/anthy-unicode/slack-desc b/source/x/anthy-unicode/slack-desc new file mode 100644 index 00000000..d6e0741b --- /dev/null +++ b/source/x/anthy-unicode/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------------------------------------------------------| +anthy-unicode: anthy-unicode (A library for Japanese text input) +anthy-unicode: +anthy-unicode: Anthy is a library for Japanese text input. It converts Hiragana text +anthy-unicode: to Kana Kanji mixed text. +anthy-unicode: +anthy-unicode: Homepage: https://github.com/fujiwarat/anthy-unicode +anthy-unicode: +anthy-unicode: +anthy-unicode: +anthy-unicode: +anthy-unicode: diff --git a/source/x/anthy/slack-desc b/source/x/anthy/slack-desc deleted file mode 100644 index 1de00da2..00000000 --- a/source/x/anthy/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -anthy: anthy (a system for Japanese input method) -anthy: -anthy: Anthy is a library for Japanese text input. It converts Hiragana text -anthy: to Kana Kanji mixed text. -anthy: -anthy: anthy home: http://anthy.sourceforge.jp/ -anthy: -anthy: -anthy: -anthy: -anthy: diff --git a/source/x/fcitx-configtool/fcitx-configtool.url b/source/x/fcitx-configtool/fcitx-configtool.url deleted file mode 100644 index 34012df2..00000000 --- a/source/x/fcitx-configtool/fcitx-configtool.url +++ /dev/null @@ -1 +0,0 @@ -https://download.fcitx-im.org/fcitx-configtool diff --git a/source/x/fcitx-configtool/slack-desc b/source/x/fcitx-configtool/slack-desc deleted file mode 100644 index 88e431f6..00000000 --- a/source/x/fcitx-configtool/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -fcitx-configtool: fcitx-configtool (GTK based config tool for Fcitx) -fcitx-configtool: -fcitx-configtool: fcitx-configtool is a GTK3 based configuration tool for Fcitx. -fcitx-configtool: -fcitx-configtool: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-configtool: -fcitx-configtool: -fcitx-configtool: -fcitx-configtool: -fcitx-configtool: -fcitx-configtool: diff --git a/source/x/fcitx-libpinyin/fcitx-libpinyin.SlackBuild b/source/x/fcitx-libpinyin/fcitx-libpinyin.SlackBuild deleted file mode 100755 index 88a02b5d..00000000 --- a/source/x/fcitx-libpinyin/fcitx-libpinyin.SlackBuild +++ /dev/null @@ -1,121 +0,0 @@ -#!/bin/bash - -# Slackware build script for fcitx-libpinyin - -# Copyright 2017 Heinz Wiesinger, Amsterdam, The Netherlands -# Copyright 2017, 2020, 2021 Patrick J. Volkerding, Sebeka, MN, USA -# 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) - -PKGNAM=fcitx-libpinyin -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -BUILD=${BUILD:-2} - -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} - -# Automatically determine the architecture we're building on: -MARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i586 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac -fi - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -elif [ "$ARCH" = "armv7hl" ]; then - SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" - LIBDIRSUFFIX="" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" - exit 0 -fi - -TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-libpinyin - -rm -rf $PKG -mkdir -p $TMP $PKG -cd $TMP -rm -rf fcitx-libpinyin-$VERSION -tar xvf $CWD/fcitx-libpinyin-$VERSION.tar.?z* || exit 1 -cd fcitx-libpinyin-$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 {} \+ - -# Extract model.text.* from the dict tarball: -( cd $TMP - tar xf $CWD/dict/*.tar.* $(tar tf $CWD/dict/*.tar.* | grep model.text) -) - -mkdir cmake-build -cd cmake-build - cmake \ - -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ - -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ - -DCMAKE_INSTALL_PREFIX="/usr" \ - -DLIBPINYIN_PKGDATADIR=/usr/share/fcitx/libpinyin/zhuyin_data \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DENABLE_QT=OFF \ - .. - - make $NUMJOBS || make || exit 1 - make install DESTDIR=$PKG || exit 1 -cd .. - -# Strip binaries: -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx-libpinyin/slack-desc b/source/x/fcitx-libpinyin/slack-desc deleted file mode 100644 index 6f55e6de..00000000 --- a/source/x/fcitx-libpinyin/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -fcitx-libpinyin: fcitx-libpinyin (libpinyin wrapper for Fcitx) -fcitx-libpinyin: -fcitx-libpinyin: libpinyin wrapper for Fcitx. -fcitx-libpinyin: -fcitx-libpinyin: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-libpinyin: -fcitx-libpinyin: -fcitx-libpinyin: -fcitx-libpinyin: -fcitx-libpinyin: -fcitx-libpinyin: diff --git a/source/x/fcitx-sayura/fcitx-sayura.SlackBuild b/source/x/fcitx-sayura/fcitx-sayura.SlackBuild deleted file mode 100755 index 687785c3..00000000 --- a/source/x/fcitx-sayura/fcitx-sayura.SlackBuild +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/bash - -# Slackware build script for fcitx-sayura - -# Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands -# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA -# 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) - -PKGNAM=fcitx-sayura -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -BUILD=${BUILD:-3} - -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} - -# Automatically determine the architecture we're building on: -MARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i586 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) 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 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" - exit 0 -fi - -TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-sayura - -rm -rf $PKG -mkdir -p $TMP $PKG -cd $TMP -rm -rf fcitx-sayura-$VERSION -tar xvf $CWD/fcitx-sayura-$VERSION.tar.?z || exit 1 -cd fcitx-sayura-$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" \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - .. - - make $NUMJOBS || make || exit 1 - make install/strip DESTDIR=$PKG || exit 1 -cd .. - -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a README.md $PKG/usr/doc/$PKGNAM-$VERSION - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx-sayura/slack-desc b/source/x/fcitx-sayura/slack-desc deleted file mode 100644 index 5a277c9a..00000000 --- a/source/x/fcitx-sayura/slack-desc +++ /dev/null @@ -1,18 +0,0 @@ -# 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------------------------------------------------------| -fcitx-sayura: fcitx-sayura (Sinhala input method for fcitx) -fcitx-sayura: -fcitx-sayura: Fcitx-Sayura is a Sinhala input method for Fcitx. -fcitx-sayura: -fcitx-sayura: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-sayura: -fcitx-sayura: -fcitx-sayura: -fcitx-sayura: -fcitx-sayura: diff --git a/source/x/fcitx-table-other/fcitx-table-other.SlackBuild b/source/x/fcitx-table-other/fcitx-table-other.SlackBuild deleted file mode 100755 index 03e90bc4..00000000 --- a/source/x/fcitx-table-other/fcitx-table-other.SlackBuild +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash - -# Slackware build script for fcitx-table-other - -# Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands -# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA -# 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) - -PKGNAM=fcitx-table-other -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -BUILD=${BUILD:-3} - -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} - -# Automatically determine the architecture we're building on: -MARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i586 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) 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 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" - exit 0 -fi - -TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-table-other - -rm -rf $PKG -mkdir -p $TMP $PKG -cd $TMP -rm -rf fcitx-table-other-$VERSION -tar xvf $CWD/fcitx-table-other-$VERSION.tar.?z || exit 1 -cd fcitx-table-other-$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 {} \+ - -cmake \ - -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ - -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ - -DCMAKE_INSTALL_PREFIX="/usr" \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - . - -make $NUMJOBS || make || exit 1 -make install DESTDIR=$PKG || exit 1 - -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx-table-other/slack-desc b/source/x/fcitx-table-other/slack-desc deleted file mode 100644 index 3c50ceab..00000000 --- a/source/x/fcitx-table-other/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -fcitx-table-other: fcitx-table-other (other tables for fcitx) -fcitx-table-other: -fcitx-table-other: fcitx-table-other provides some other tables for Fcitx, forked from -fcitx-table-other: ibus-table-others and scim-tables. -fcitx-table-other: -fcitx-table-other: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-table-other: -fcitx-table-other: -fcitx-table-other: -fcitx-table-other: -fcitx-table-other: diff --git a/source/x/fcitx-unikey/fcitx-unikey.SlackBuild b/source/x/fcitx-unikey/fcitx-unikey.SlackBuild deleted file mode 100755 index b212a4f1..00000000 --- a/source/x/fcitx-unikey/fcitx-unikey.SlackBuild +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/bash - -# Slackware build script for fcitx-unikey - -# Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands -# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA -# 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) - -PKGNAM=fcitx-unikey -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -BUILD=${BUILD:-3} - -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} - -# Automatically determine the architecture we're building on: -MARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i586 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) 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 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" - exit 0 -fi - -TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-unikey - -rm -rf $PKG -mkdir -p $TMP $PKG -cd $TMP -rm -rf fcitx-unikey-$VERSION -tar xvf $CWD/fcitx-unikey-$VERSION.tar.?z || exit 1 -cd fcitx-unikey-$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" \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - .. - - make $NUMJOBS || make || exit 1 - make install/strip DESTDIR=$PKG || exit 1 -cd .. - -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx-unikey/slack-desc b/source/x/fcitx-unikey/slack-desc deleted file mode 100644 index 9a805566..00000000 --- a/source/x/fcitx-unikey/slack-desc +++ /dev/null @@ -1,18 +0,0 @@ -# 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------------------------------------------------------| -fcitx-unikey: fcitx-unikey (Vietnamese input support for fcitx) -fcitx-unikey: -fcitx-unikey: Unikey (Vietnamese Input Method) engine support for Fcitx. -fcitx-unikey: -fcitx-unikey: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-unikey: -fcitx-unikey: -fcitx-unikey: -fcitx-unikey: -fcitx-unikey: diff --git a/source/x/fcitx/fcitx-autostart.patch b/source/x/fcitx/fcitx-autostart.patch deleted file mode 100644 index 10924fbe..00000000 --- a/source/x/fcitx/fcitx-autostart.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- fcitx-autostart.orig 2017-03-26 17:58:45.586105103 +0200 -+++ fcitx-autostart 2017-03-26 17:59:09.693105345 +0200 -@@ -1,4 +1,26 @@ --#!/bin/sh -+#!/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 diff --git a/source/x/fcitx/slack-desc b/source/x/fcitx/slack-desc deleted file mode 100644 index c64bd1b5..00000000 --- a/source/x/fcitx/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -fcitx: fcitx (Input Method Framework) -fcitx: -fcitx: Fcitx is an input method framework with extension support. Currently -fcitx: it supports Linux and Unix systems like freebsd. It has three built- -fcitx: in Input Method Engine, Pinyin, QuWei and Table-based input methods. -fcitx: Fcitx tries to provide a native feeling under all desktop as well as -fcitx: a light weight core. You can easily customize it to fit your -fcitx: requirements. -fcitx: -fcitx: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx: diff --git a/source/x/fcitx-anthy/fcitx-anthy.SlackBuild b/source/x/fcitx5-anthy/fcitx5-anthy.SlackBuild index 6c60c204..9e8815dc 100755 --- a/source/x/fcitx-anthy/fcitx-anthy.SlackBuild +++ b/source/x/fcitx5-anthy/fcitx5-anthy.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for fcitx-anthy - # Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -25,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=fcitx-anthy +PKGNAM=fcitx5-anthy VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} BUILD=${BUILD:-1} @@ -69,14 +67,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-anthy +PKG=$TMP/package-fcitx5-anthy rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf fcitx-anthy-$VERSION -tar xvf $CWD/fcitx-anthy-$VERSION.tar.?z || exit 1 -cd fcitx-anthy-$VERSION || exit 1 +rm -rf fcitx5-anthy-$VERSION +tar xvf $CWD/fcitx5-anthy-$VERSION.tar.?z || exit 1 +cd fcitx5-anthy-$VERSION || exit 1 chown -R root:root . find . \ @@ -91,7 +89,7 @@ cd build -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX="/usr" \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ .. make $NUMJOBS || make || exit 1 @@ -99,7 +97,7 @@ cd build cd .. mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/source/x/fcitx5-anthy/fcitx5-anthy.url b/source/x/fcitx5-anthy/fcitx5-anthy.url new file mode 100644 index 00000000..40e9a274 --- /dev/null +++ b/source/x/fcitx5-anthy/fcitx5-anthy.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-anthy/ diff --git a/source/x/fcitx-hangul/slack-desc b/source/x/fcitx5-anthy/slack-desc index 8ad9742b..227b4d7b 100644 --- a/source/x/fcitx-hangul/slack-desc +++ b/source/x/fcitx5-anthy/slack-desc @@ -6,13 +6,13 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -fcitx-hangul: fcitx-hangul (Hangul wrapper for fcitx) -fcitx-hangul: -fcitx-hangul: Hangul Wrapper for Fcitx. -fcitx-hangul: -fcitx-hangul: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-hangul: -fcitx-hangul: -fcitx-hangul: -fcitx-hangul: -fcitx-hangul: +fcitx5-anthy: fcitx5-anthy (Anthy wrapper for fcitx5) +fcitx5-anthy: +fcitx5-anthy: Anthy Wrapper for Fcitx5. +fcitx5-anthy: +fcitx5-anthy: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-anthy: +fcitx5-anthy: +fcitx5-anthy: +fcitx5-anthy: +fcitx5-anthy: diff --git a/source/x/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild b/source/x/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild new file mode 100755 index 00000000..1580fca7 --- /dev/null +++ b/source/x/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild @@ -0,0 +1,106 @@ +#!/bin/bash + +# Copyright 2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2022 Patrick J. Volkerding, Sebeka, MN, USA +# 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) + +PKGNAM=fcitx5-chinese-addons +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | cut -f 2- -d _ | rev)} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i586 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) 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 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +TMP=${TMP:-/tmp} +PKG=$TMP/package-fcitx5-chinese-addons + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf fcitx5-chinese-addons-$VERSION +tar xvf $CWD/fcitx5-chinese-addons-${VERSION}_dict.tar.?z || exit 1 +cd fcitx5-chinese-addons-$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 $NUMJOBS || make || exit 1 + make install/strip DESTDIR=$PKG || exit 1 +cd .. + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx5-chinese-addons/fcitx5-chinese-addons.url b/source/x/fcitx5-chinese-addons/fcitx5-chinese-addons.url new file mode 100644 index 00000000..7107fba1 --- /dev/null +++ b/source/x/fcitx5-chinese-addons/fcitx5-chinese-addons.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/ diff --git a/source/x/fcitx5-chinese-addons/slack-desc b/source/x/fcitx5-chinese-addons/slack-desc new file mode 100644 index 00000000..ad83f8c6 --- /dev/null +++ b/source/x/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: +fcitx5-chinese-addons: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-chinese-addons: +fcitx5-chinese-addons: +fcitx5-chinese-addons: +fcitx5-chinese-addons: +fcitx5-chinese-addons: +fcitx5-chinese-addons: diff --git a/source/x/fcitx5-gtk/doinst.sh b/source/x/fcitx5-gtk/doinst.sh new file mode 100644 index 00000000..0e140996 --- /dev/null +++ b/source/x/fcitx5-gtk/doinst.sh @@ -0,0 +1,4 @@ +if [ -x usr/bin/update-gtk-immodules ]; then + chroot . /usr/bin/update-gtk-immodules --verbose 1>/dev/null +fi + diff --git a/source/x/fcitx5-gtk/fcitx5-gtk.SlackBuild b/source/x/fcitx5-gtk/fcitx5-gtk.SlackBuild new file mode 100755 index 00000000..a9c83b56 --- /dev/null +++ b/source/x/fcitx5-gtk/fcitx5-gtk.SlackBuild @@ -0,0 +1,107 @@ +#!/bin/bash + +# Copyright 2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2022 Patrick J. Volkerding, Sebeka, MN, USA +# 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) + +PKGNAM=fcitx5-gtk +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i586 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) 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 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +TMP=${TMP:-/tmp} +PKG=$TMP/package-fcitx5-gtk + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf fcitx5-gtk-$VERSION +tar xvf $CWD/fcitx5-gtk-$VERSION.tar.?z || exit 1 +cd fcitx5-gtk-$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 $NUMJOBS || make || exit 1 + make install/strip DESTDIR=$PKG || exit 1 +cd .. + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx5-gtk/fcitx5-gtk.url b/source/x/fcitx5-gtk/fcitx5-gtk.url new file mode 100644 index 00000000..6f7fa1f1 --- /dev/null +++ b/source/x/fcitx5-gtk/fcitx5-gtk.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-gtk/ diff --git a/source/x/fcitx-m17n/slack-desc b/source/x/fcitx5-gtk/slack-desc index 0a362c7f..8d3ae561 100644 --- a/source/x/fcitx-m17n/slack-desc +++ b/source/x/fcitx5-gtk/slack-desc @@ -6,13 +6,14 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -fcitx-m17n: fcitx-m17n (m17n input method engine wrapper for fcitx) -fcitx-m17n: -fcitx-m17n: Fcitx wrapper for the m17n input method engine. -fcitx-m17n: -fcitx-m17n: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-m17n: -fcitx-m17n: -fcitx-m17n: -fcitx-m17n: -fcitx-m17n: +fcitx5-gtk: fcitx5-gtk (Gtk IM Module 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/source/x/fcitx-qt5/fcitx-qt5.SlackBuild b/source/x/fcitx5-hangul/fcitx5-hangul.SlackBuild index 90aa739a..5e920bd2 100755 --- a/source/x/fcitx-qt5/fcitx-qt5.SlackBuild +++ b/source/x/fcitx5-hangul/fcitx5-hangul.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for fcitx-qt5 - # Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -25,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=fcitx-qt5 +PKGNAM=fcitx5-hangul VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} BUILD=${BUILD:-1} @@ -69,14 +67,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-qt5 +PKG=$TMP/package-fcitx5-hangul rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf fcitx-qt5-$VERSION -tar xvf $CWD/fcitx-qt5-$VERSION.tar.?z || exit 1 -cd fcitx-qt5-$VERSION || exit 1 +rm -rf fcitx5-hangul-$VERSION +tar xvf $CWD/fcitx5-hangul-$VERSION.tar.?z || exit 1 +cd fcitx5-hangul-$VERSION || exit 1 chown -R root:root . find . \ @@ -91,7 +89,7 @@ cd build -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX="/usr" \ - -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ .. make $NUMJOBS || make || exit 1 @@ -99,7 +97,7 @@ cd build cd .. mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING README $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/source/x/fcitx5-hangul/fcitx5-hangul.url b/source/x/fcitx5-hangul/fcitx5-hangul.url new file mode 100644 index 00000000..9a03e340 --- /dev/null +++ b/source/x/fcitx5-hangul/fcitx5-hangul.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-hangul/ diff --git a/source/x/fcitx5-hangul/slack-desc b/source/x/fcitx5-hangul/slack-desc new file mode 100644 index 00000000..d03dc299 --- /dev/null +++ b/source/x/fcitx5-hangul/slack-desc @@ -0,0 +1,18 @@ +# 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-hangul: fcitx5-hangul (Hangul wrapper for fcitx5) +fcitx5-hangul: +fcitx5-hangul: Hangul Wrapper for Fcitx. +fcitx5-hangul: +fcitx5-hangul: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-hangul: +fcitx5-hangul: +fcitx5-hangul: +fcitx5-hangul: +fcitx5-hangul: diff --git a/source/x/fcitx-kkc/fcitx-kkc.SlackBuild b/source/x/fcitx5-kkc/fcitx5-kkc.SlackBuild index f317e391..072f4692 100755 --- a/source/x/fcitx-kkc/fcitx-kkc.SlackBuild +++ b/source/x/fcitx5-kkc/fcitx5-kkc.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for fcitx-kkc - # Copyright 2015-2016 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -25,9 +23,9 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=fcitx-kkc +PKGNAM=fcitx5-kkc VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -69,14 +67,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-kkc +PKG=$TMP/package-fcitx5-kkc rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf fcitx-kkc-$VERSION -tar xvf $CWD/fcitx-kkc-$VERSION.tar.?z || exit 1 -cd fcitx-kkc-$VERSION || exit 1 +rm -rf fcitx5-kkc-$VERSION +tar xvf $CWD/fcitx5-kkc-$VERSION.tar.?z || exit 1 +cd fcitx5-kkc-$VERSION || exit 1 chown -R root:root . find . \ @@ -91,7 +89,7 @@ cd build -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX="/usr" \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ .. make $NUMJOBS || make || exit 1 @@ -99,7 +97,7 @@ cd build cd .. mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/source/x/fcitx5-kkc/fcitx5-kkc.url b/source/x/fcitx5-kkc/fcitx5-kkc.url new file mode 100644 index 00000000..0cbf46e1 --- /dev/null +++ b/source/x/fcitx5-kkc/fcitx5-kkc.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-kkc/ diff --git a/source/x/fcitx5-kkc/slack-desc b/source/x/fcitx5-kkc/slack-desc new file mode 100644 index 00000000..abe90ce0 --- /dev/null +++ b/source/x/fcitx5-kkc/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-kkc: fcitx5-kkc (Japanese Kana Kanji Engine for Fcitx5) +fcitx5-kkc: +fcitx5-kkc: Fcitx-kkc is a Kana Kanji engine for Fcitx. It provides Japanese +fcitx5-kkc: input method using libkkc. +fcitx5-kkc: +fcitx5-kkc: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-kkc: +fcitx5-kkc: +fcitx5-kkc: +fcitx5-kkc: +fcitx5-kkc: diff --git a/source/x/fcitx-m17n/fcitx-m17n.SlackBuild b/source/x/fcitx5-m17n/fcitx5-m17n.SlackBuild index 78f838e1..4f27987b 100755 --- a/source/x/fcitx-m17n/fcitx-m17n.SlackBuild +++ b/source/x/fcitx5-m17n/fcitx5-m17n.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for fcitx-m17n - # Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -25,9 +23,9 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=fcitx-m17n +PKGNAM=fcitx5-m17n VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -69,14 +67,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-m17n +PKG=$TMP/package-fcitx5-m17n rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf fcitx-m17n-$VERSION -tar xvf $CWD/fcitx-m17n-$VERSION.tar.?z || exit 1 -cd fcitx-m17n-$VERSION || exit 1 +rm -rf fcitx5-m17n-$VERSION +tar xvf $CWD/fcitx5-m17n-$VERSION.tar.?z || exit 1 +cd fcitx5-m17n-$VERSION || exit 1 chown -R root:root . find . \ @@ -91,7 +89,7 @@ cd build -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX="/usr" \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ .. make $NUMJOBS || make || exit 1 @@ -99,7 +97,7 @@ cd build cd .. mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/source/x/fcitx5-m17n/fcitx5-m17n.url b/source/x/fcitx5-m17n/fcitx5-m17n.url new file mode 100644 index 00000000..cb69b0b7 --- /dev/null +++ b/source/x/fcitx5-m17n/fcitx5-m17n.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-m17n/ diff --git a/source/x/fcitx-anthy/slack-desc b/source/x/fcitx5-m17n/slack-desc index 3bce3190..b727059e 100644 --- a/source/x/fcitx-anthy/slack-desc +++ b/source/x/fcitx5-m17n/slack-desc @@ -6,13 +6,13 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -fcitx-anthy: fcitx-anthy (Anthy wrapper for fcitx) -fcitx-anthy: -fcitx-anthy: Anthy Wrapper for Fcitx. -fcitx-anthy: -fcitx-anthy: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-anthy: -fcitx-anthy: -fcitx-anthy: -fcitx-anthy: -fcitx-anthy: +fcitx5-m17n: fcitx5-m17n (m17n input method engine wrapper for fcitx5) +fcitx5-m17n: +fcitx5-m17n: Fcitx wrapper for the m17n input method engine. +fcitx5-m17n: +fcitx5-m17n: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-m17n: +fcitx5-m17n: +fcitx5-m17n: +fcitx5-m17n: +fcitx5-m17n: diff --git a/source/x/fcitx-hangul/fcitx-hangul.SlackBuild b/source/x/fcitx5-qt/fcitx5-qt.SlackBuild index 0c1ec73b..6770179f 100755 --- a/source/x/fcitx-hangul/fcitx-hangul.SlackBuild +++ b/source/x/fcitx5-qt/fcitx5-qt.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for fcitx-hangul - # Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -25,9 +23,9 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=fcitx-hangul +PKGNAM=fcitx5-qt VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -69,14 +67,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-hangul +PKG=$TMP/package-fcitx5-qt rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf fcitx-hangul-$VERSION -tar xvf $CWD/fcitx-hangul-$VERSION.tar.?z || exit 1 -cd fcitx-hangul-$VERSION || exit 1 +rm -rf fcitx5-qt-$VERSION +tar xvf $CWD/fcitx5-qt-$VERSION.tar.?z || exit 1 +cd fcitx5-qt-$VERSION || exit 1 chown -R root:root . find . \ @@ -91,7 +89,8 @@ cd build -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX="/usr" \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + -DENABLE_QT4="Off" \ .. make $NUMJOBS || make || exit 1 @@ -99,7 +98,7 @@ cd build cd .. mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/source/x/fcitx5-qt/fcitx5-qt.url b/source/x/fcitx5-qt/fcitx5-qt.url new file mode 100644 index 00000000..639c96e3 --- /dev/null +++ b/source/x/fcitx5-qt/fcitx5-qt.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-qt/ diff --git a/source/x/fcitx-qt5/slack-desc b/source/x/fcitx5-qt/slack-desc index 0b4a0203..53a5cead 100644 --- a/source/x/fcitx-qt5/slack-desc +++ b/source/x/fcitx5-qt/slack-desc @@ -6,14 +6,14 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -fcitx-qt5: fcitx-qt5 (Qt5 IM Module for Fcitx) -fcitx-qt5: -fcitx-qt5: Qt5 IM Module for Fcitx. -fcitx-qt5: -fcitx-qt5: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-qt5: -fcitx-qt5: -fcitx-qt5: -fcitx-qt5: -fcitx-qt5: -fcitx-qt5: +fcitx5-qt: fcitx5-qt (Qt IM Module for Fcitx5) +fcitx5-qt: +fcitx5-qt: Qt 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/source/x/fcitx5-sayura/fcitx5-sayura.SlackBuild b/source/x/fcitx5-sayura/fcitx5-sayura.SlackBuild new file mode 100755 index 00000000..5bac684f --- /dev/null +++ b/source/x/fcitx5-sayura/fcitx5-sayura.SlackBuild @@ -0,0 +1,106 @@ +#!/bin/bash + +# Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA +# 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) + +PKGNAM=fcitx5-sayura +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i586 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) 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 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +TMP=${TMP:-/tmp} +PKG=$TMP/package-fcitx5-sayura + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf fcitx5-sayura-$VERSION +tar xvf $CWD/fcitx5-sayura-$VERSION.tar.?z || exit 1 +cd fcitx5-sayura-$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 $NUMJOBS || make || exit 1 + make install/strip DESTDIR=$PKG || exit 1 +cd .. + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx5-sayura/fcitx5-sayura.url b/source/x/fcitx5-sayura/fcitx5-sayura.url new file mode 100644 index 00000000..d54c7c64 --- /dev/null +++ b/source/x/fcitx5-sayura/fcitx5-sayura.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-sayura/ diff --git a/source/x/fcitx5-sayura/slack-desc b/source/x/fcitx5-sayura/slack-desc new file mode 100644 index 00000000..40aeb440 --- /dev/null +++ b/source/x/fcitx5-sayura/slack-desc @@ -0,0 +1,18 @@ +# 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-sayura: fcitx5-sayura (Sinhala input method for fcitx5) +fcitx5-sayura: +fcitx5-sayura: Fcitx-Sayura is a Sinhala input method for Fcitx. +fcitx5-sayura: +fcitx5-sayura: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-sayura: +fcitx5-sayura: +fcitx5-sayura: +fcitx5-sayura: +fcitx5-sayura: diff --git a/source/x/fcitx-table-extra/fcitx-table-extra.SlackBuild b/source/x/fcitx5-table-extra/fcitx5-table-extra.SlackBuild index affe6726..2437fe4c 100755 --- a/source/x/fcitx-table-extra/fcitx-table-extra.SlackBuild +++ b/source/x/fcitx5-table-extra/fcitx5-table-extra.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for fcitx-table-extra - # Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -25,9 +23,9 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=fcitx-table-extra +PKGNAM=fcitx5-table-extra VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -69,14 +67,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx-table-extra +PKG=$TMP/package-fcitx5-table-extra rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf fcitx-table-extra-$VERSION -tar xvf $CWD/fcitx-table-extra-$VERSION.tar.?z || exit 1 -cd fcitx-table-extra-$VERSION || exit 1 +rm -rf fcitx5-table-extra-$VERSION +tar xvf $CWD/fcitx5-table-extra-$VERSION.tar.?z || exit 1 +cd fcitx5-table-extra-$VERSION || exit 1 chown -R root:root . find . \ @@ -91,7 +89,7 @@ cd build -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX="/usr" \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ .. make $NUMJOBS || make || exit 1 @@ -99,7 +97,7 @@ cd build cd .. mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/source/x/fcitx5-table-extra/fcitx5-table-extra.url b/source/x/fcitx5-table-extra/fcitx5-table-extra.url new file mode 100644 index 00000000..231faaf6 --- /dev/null +++ b/source/x/fcitx5-table-extra/fcitx5-table-extra.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-table-extra/ diff --git a/source/x/fcitx5-table-extra/slack-desc b/source/x/fcitx5-table-extra/slack-desc new file mode 100644 index 00000000..a887dcd1 --- /dev/null +++ b/source/x/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 tables for fcitx5) +fcitx5-table-extra: +fcitx5-table-extra: fcitx5-table-extra provides extra tables for Fcitx, including Boshiamy, +fcitx5-table-extra: Zhengma, Cangjie, and Quick. +fcitx5-table-extra: +fcitx5-table-extra: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-table-extra: +fcitx5-table-extra: +fcitx5-table-extra: +fcitx5-table-extra: +fcitx5-table-extra: diff --git a/source/x/fcitx5-table-other/fcitx5-table-other.SlackBuild b/source/x/fcitx5-table-other/fcitx5-table-other.SlackBuild new file mode 100755 index 00000000..e383ad48 --- /dev/null +++ b/source/x/fcitx5-table-other/fcitx5-table-other.SlackBuild @@ -0,0 +1,106 @@ +#!/bin/bash + +# Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA +# 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) + +PKGNAM=fcitx5-table-other +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i586 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) 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 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +TMP=${TMP:-/tmp} +PKG=$TMP/package-fcitx5-table-other + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf fcitx5-table-other-$VERSION +tar xvf $CWD/fcitx5-table-other-$VERSION.tar.?z || exit 1 +cd fcitx5-table-other-$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 $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd .. + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx5-table-other/fcitx5-table-other.url b/source/x/fcitx5-table-other/fcitx5-table-other.url new file mode 100644 index 00000000..55a62542 --- /dev/null +++ b/source/x/fcitx5-table-other/fcitx5-table-other.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-table-other/ diff --git a/source/x/fcitx5-table-other/slack-desc b/source/x/fcitx5-table-other/slack-desc new file mode 100644 index 00000000..2b622463 --- /dev/null +++ b/source/x/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 (Other tables for fcitx5) +fcitx5-table-other: +fcitx5-table-other: fcitx5-table-other provides some other tables for Fcitx, forked from +fcitx5-table-other: ibus-table-others and scim-tables. +fcitx5-table-other: +fcitx5-table-other: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-table-other: +fcitx5-table-other: +fcitx5-table-other: +fcitx5-table-other: +fcitx5-table-other: diff --git a/source/x/fcitx5-unikey/fcitx5-unikey.SlackBuild b/source/x/fcitx5-unikey/fcitx5-unikey.SlackBuild new file mode 100755 index 00000000..1c529603 --- /dev/null +++ b/source/x/fcitx5-unikey/fcitx5-unikey.SlackBuild @@ -0,0 +1,106 @@ +#!/bin/bash + +# Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA +# 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) + +PKGNAM=fcitx5-unikey +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i586 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) 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 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +TMP=${TMP:-/tmp} +PKG=$TMP/package-fcitx5-unikey + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf fcitx5-unikey-$VERSION +tar xvf $CWD/fcitx5-unikey-$VERSION.tar.?z || exit 1 +cd fcitx5-unikey-$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 $NUMJOBS || make || exit 1 + make install/strip DESTDIR=$PKG || exit 1 +cd .. + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/fcitx5-unikey/fcitx5-unikey.url b/source/x/fcitx5-unikey/fcitx5-unikey.url new file mode 100644 index 00000000..0bbe733e --- /dev/null +++ b/source/x/fcitx5-unikey/fcitx5-unikey.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5-unikey/ diff --git a/source/x/fcitx-kkc/slack-desc b/source/x/fcitx5-unikey/slack-desc index 3121c890..6c92149a 100644 --- a/source/x/fcitx-kkc/slack-desc +++ b/source/x/fcitx5-unikey/slack-desc @@ -5,15 +5,14 @@ # 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------------------------------------------------------| -fcitx-kkc: fcitx-kkc (Japanese Kana Kanji Engine for Fcitx) -fcitx-kkc: -fcitx-kkc: Fcitx-kkc is a Kana Kanji engine for Fcitx. It provides Japanese -fcitx-kkc: input method using libkkc. -fcitx-kkc: -fcitx-kkc: Homepage: https://fcitx-im.org/wiki/Fcitx -fcitx-kkc: -fcitx-kkc: -fcitx-kkc: -fcitx-kkc: -fcitx-kkc: + |-----handy-ruler------------------------------------------------------| +fcitx5-unikey: fcitx5-unikey (Vietnamese input support for fcitx5) +fcitx5-unikey: +fcitx5-unikey: Unikey (Vietnamese Input Method) engine support for Fcitx. +fcitx5-unikey: +fcitx5-unikey: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +fcitx5-unikey: +fcitx5-unikey: +fcitx5-unikey: +fcitx5-unikey: +fcitx5-unikey: diff --git a/source/x/fcitx/doinst.sh b/source/x/fcitx5/doinst.sh index c9d0cf4d..e4e64598 100644 --- a/source/x/fcitx/doinst.sh +++ b/source/x/fcitx5/doinst.sh @@ -6,7 +6,3 @@ if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi -if [ -x usr/bin/update-gtk-immodules ]; then - chroot . /usr/bin/update-gtk-immodules --verbose 1>/dev/null -fi - diff --git a/source/x/fcitx5/fcitx5-autostart b/source/x/fcitx5/fcitx5-autostart new file mode 100755 index 00000000..22d8c056 --- /dev/null +++ b/source/x/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/source/x/fcitx/fcitx.SlackBuild b/source/x/fcitx5/fcitx5.SlackBuild index 5750f7f3..085e2eb7 100755 --- a/source/x/fcitx/fcitx.SlackBuild +++ b/source/x/fcitx5/fcitx5.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for fcitx. - # Copyright 2012 vvoody <vvoodywang@gmail.com> # Copyright 2018, 2020 Patrick J. Volkerding, Sebeka, MN, USA # @@ -26,9 +24,9 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=fcitx +PKGNAM=fcitx5 VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | cut -f 2- -d _ | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -73,14 +71,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp} -PKG=$TMP/package-fcitx +PKG=$TMP/package-fcitx5 rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf fcitx-$VERSION -tar xvf $CWD/fcitx-${VERSION}.tar.?z || exit 1 -cd fcitx-$VERSION || exit 1 +rm -rf fcitx5-$VERSION +tar xvf $CWD/fcitx5-${VERSION}_dict.tar.?z || exit 1 +cd fcitx5-$VERSION || exit 1 chown -R root:root . find . \ @@ -89,35 +87,29 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -# Patch fcitx-autostart to only start when fcitx is the configured input method -zcat $CWD/fcitx-autostart.patch.gz | patch -p0 --verbose -d data/script/ - mkdir build cd build cmake \ -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \ -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ - -DMAN_INSTALL_DIR=/usr/man \ - -DSYSCONFDIR=/etc \ - -DENABLE_GTK2_IM_MODULE=On \ - -DENABLE_GTK3_IM_MODULE=On \ - -DENABLE_QT=Off \ - -DENABLE_QT_IM_MODULE=Off \ - -DENABLE_QT_GUI=Off \ - -DENABLE_OPENCC=On \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_MANDIR=man \ + -DCMAKE_INSTALL_DOCDIR=doc/$PKGNAM-$VERSION \ + -DCMAKE_INSTALL_SYSCONFDIR=etc \ + -DENABLE_DOC="On" \ .. make $NUMJOBS || make || exit 1 make install/strip DESTDIR=$PKG || exit 1 cd .. -find $PKG/usr/man -type f -exec gzip -9 {} \; +# 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 -mv $PKG/usr/share/doc $PKG/usr -mv $PKG/usr/doc/$PKGNAM $PKG/usr/doc/$PKGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL README THANKS TODO \ - $PKG/usr/doc/$PKGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a LICENSES/* README* $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh diff --git a/source/x/fcitx5/fcitx5.url b/source/x/fcitx5/fcitx5.url new file mode 100644 index 00000000..5bd658bf --- /dev/null +++ b/source/x/fcitx5/fcitx5.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/fcitx5/ diff --git a/source/x/fcitx5/slack-desc b/source/x/fcitx5/slack-desc new file mode 100644 index 00000000..eaccae79 --- /dev/null +++ b/source/x/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/source/x/ibus-anthy/ibus-anthy.SlackBuild b/source/x/ibus-anthy/ibus-anthy.SlackBuild index a414c40e..58b642e5 100755 --- a/source/x/ibus-anthy/ibus-anthy.SlackBuild +++ b/source/x/ibus-anthy/ibus-anthy.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=ibus-anthy VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} diff --git a/source/x/ibus/ibus-autostart b/source/x/ibus/ibus-autostart index 4f274335..c6b473ea 100644 --- a/source/x/ibus/ibus-autostart +++ b/source/x/ibus/ibus-autostart @@ -20,7 +20,7 @@ fi if [ "$START" = "yes" ]; then if [ "$1" = "--plasma" ]; then - ibus-daemon -drx --panel=/usr/libLIBDIRSUFFIX/kimpanel-ibus-panel + ibus-daemon -drx --panel=/usr/libLIBDIRSUFFIX/libexec/kimpanel-ibus-panel else ibus-daemon -drx fi diff --git a/source/x/ibus/ibus.SlackBuild b/source/x/ibus/ibus.SlackBuild index 8af65b92..96ddde33 100755 --- a/source/x/ibus/ibus.SlackBuild +++ b/source/x/ibus/ibus.SlackBuild @@ -1,7 +1,5 @@ #!/bin/bash -# Slackware build script for ibus - # Copyright 2017 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2017, 2020, 2022 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -27,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=ibus VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} diff --git a/source/x/libime/libime.SlackBuild b/source/x/libime/libime.SlackBuild new file mode 100755 index 00000000..e5920ce4 --- /dev/null +++ b/source/x/libime/libime.SlackBuild @@ -0,0 +1,109 @@ +#!/bin/bash + +# Copyright 2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2022 Patrick J. Volkerding, Sebeka, MN, USA +# 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) + +PKGNAM=libime +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | cut -f 2- -d _ | rev)} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i586 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac +fi + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +TMP=${TMP:-/tmp} +PKG=$TMP/package-libime + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf libime-$VERSION +tar xvf $CWD/libime-${VERSION}_dict.tar.?z || exit 1 +cd libime-$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_C_FLAGS:STRING="${SLKCFLAGS}" \ + -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + .. + make $NUMJOBS || make || exit 1 + make install/strip DESTDIR=$PKG || exit 1 +cd .. + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a README* LICENSES/* \ + $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/libime/libime.url b/source/x/libime/libime.url new file mode 100644 index 00000000..b5d03da6 --- /dev/null +++ b/source/x/libime/libime.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/libime/ diff --git a/source/x/libime/slack-desc b/source/x/libime/slack-desc new file mode 100644 index 00000000..b4d8e176 --- /dev/null +++ b/source/x/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 (Generic input method library) +libime: +libime: This is a library to support generic input method implementation. +libime: +libime: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +libime: +libime: +libime: +libime: +libime: +libime: diff --git a/source/x/m17n-lib/m17n-lib.SlackBuild b/source/x/m17n-lib/m17n-lib.SlackBuild index 86552505..f93f97c7 100755 --- a/source/x/m17n-lib/m17n-lib.SlackBuild +++ b/source/x/m17n-lib/m17n-lib.SlackBuild @@ -38,7 +38,7 @@ PKGNAM=m17n-lib SHORTNAM=m17n VERSION=${VERSION:-1.8.0} DBVERSION=${DBVERSION:-1.8.0} -BUILD=${BUILD:-4} +BUILD=${BUILD:-5} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then diff --git a/source/x/skkdic/skkdic.SlackBuild b/source/x/skkdic/skkdic.SlackBuild index a9381849..a1999ef7 100755 --- a/source/x/skkdic/skkdic.SlackBuild +++ b/source/x/skkdic/skkdic.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for skkdic # Copyright 2015-2016 Heinz Wiesinger, Amsterdam, The Netherlands -# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2016, 2020, 2022 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,8 +27,9 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=skkdic SRCVER=${SRCVER:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} -VERSION=${VERSION:-$(echo $SRCVER | cut -f 1 -d 'T')} -BUILD=${BUILD:-3} +SRCDATE=${SRCDATE:-$(echo $SRCVER | cut -f 1 -d '.')} +VERSION=${VERSION:-$(echo $SRCVER | cut -f 2 -d '.' | sed "s|git||")} +BUILD=${BUILD:-1} ARCH=noarch NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -37,7 +38,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} # 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + echo "$PKGNAM-$SRCDATE-$ARCH-$BUILD.txz" exit 0 fi @@ -47,9 +48,9 @@ PKG=$TMP/package-skkdic rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf skkdic-$VERSION +rm -rf dict-$VERSION tar xvf $CWD/skkdic-$SRCVER.tar.?z || exit 1 -cd skkdic-$VERSION || exit 1 +cd dict-$VERSION || exit 1 chown -R root:root . find . \ @@ -71,13 +72,14 @@ for i in SKK-JISYO* zipcode/SKK-JISYO*; do install -p -m 644 "$i" $PKG/usr/share/skk done -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a ChangeLog READMEs/committers.txt edict_doc.txt $CWD/README-skkdic.rh.ja \ - $PKG/usr/doc/$PKGNAM-$VERSION -cp -a zipcode/README.ja $PKG/usr/doc/$PKGNAM-$VERSION/README-zipcode.ja +mkdir -p $PKG/usr/doc/$PKGNAM-$SRCDATE/zipcode +cp -a ChangeLog committers.md edict_doc.html unicode-license.txt README.md \ + $PKG/usr/doc/$PKGNAM-$SRCDATE +cp -a zipcode/README.md \ + $PKG/usr/doc/$PKGNAM-$SRCDATE/zipcode mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$SRCDATE-$ARCH-$BUILD.txz diff --git a/source/x/skkdic/skkdic.url b/source/x/skkdic/skkdic.url index c22ca560..502ad24b 100644 --- a/source/x/skkdic/skkdic.url +++ b/source/x/skkdic/skkdic.url @@ -1,2 +1,2 @@ (fetch from Fedora SRPM) -http://pkgs.fedoraproject.org/repo/pkgs/skkdic/skkdic-20170102T1100.tar.bz2/sha512/550ba8cde28c460fdb71fd15e74b76c2a752e574f56ffbb9d69001e2c4379d5640979983288d4b937c09d752f5784890ecf66abbc153953072a389b5c9979259/skkdic-20170102T1100.tar.bz2 +http://pkgs.fedoraproject.org/repo/pkgs/skkdic/ diff --git a/source/x/x11-skel/manpages/imconfig.1 b/source/x/x11-skel/manpages/imconfig.1 new file mode 100644 index 00000000..7ca95108 --- /dev/null +++ b/source/x/x11-skel/manpages/imconfig.1 @@ -0,0 +1,25 @@ +.\" -*- nroff -*- +.ds g \" empty +.ds G \" empty +.\" Like TP, but if specified indent is more than half +.\" the current line-length - indent, use the default indent. +.de Tp +.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP +.el .TP "\\$1" +.. +.TH IMCONFIG 1 "01 June 2022" "Slackware Version 15.1.0" +.SH NAME +imconfig \- choose a default input method for X/Wayland. +.SH SYNOPSIS +.B imconfig +.SH DESCRIPTION +.B imconfig +provides a menu of the input methods available on the machine so that you +may choose one of them to use within an XDG compliant desktop environment. + +imconfig writes out $HOME/.profile.d/input-method.{sh,csh} files, allowing +the user to choose their own default input method (possibly overriding the +one chosen as a system default). +.SH AUTHOR +Patrick J. Volkerding <volkerdi@slackware.com> +Heinz Wiesinger <pprkut@slackware.com> diff --git a/source/x/x11-skel/scripts/imconfig b/source/x/x11-skel/scripts/imconfig new file mode 100644 index 00000000..a576b273 --- /dev/null +++ b/source/x/x11-skel/scripts/imconfig @@ -0,0 +1,146 @@ +#!/bin/sh + +# Copyright 2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2022 Patrick J. Volkerding, Sebeka, MN, USA +# 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. +# + +TMP=$HOME/.imconfig + +if [ ! -d $TMP ]; then + mkdir -p $TMP + chmod 700 $TMP +fi + +# Set up some background information: +BACKTITLE="--backtitle \"Setting default input method in $HOME/.profile.d/input-method.sh\"" + +# This stops --backtitle from cluttering the initial install: +if [ ! -r /proc/kcore ]; then + BACKTITLE="" +fi + +# Do we already have an existing default? +unset PRESELECT +if [ -f "$HOME/.profile.d/input-method.sh" ]; then + CURRENT="$(grep QT_IM_MODULE "$HOME/.profile.d/input-method.sh" | cut -d '=' -f 2)" + if ! [ "$CURRENT" = "" ]; then + PRESELECT=" --default-item $CURRENT " + fi +fi + +# Remove any previous script: +rm -f $TMP/tmpscript.sh + +# Add the top of the script: +cat << EOF > $TMP/tmpscript.sh +dialog $BACKTITLE --title "SELECT DEFAULT INPUT METHOD FOR X/WAYLAND" $PRESELECT --menu \\ +"Please select the default input method to use. This will define the application that is \\ +being used to type non-latin characters in a desktop environment." 12 74 0 \\ +EOF + +# Add default "none" option to disable input methods: +echo "\"none\" \"Do not use input methods\" \\" >> $TMP/tmpscript.sh + +# Add fcitx as the first and default entry: +if [ -r /usr/bin/fcitx5-autostart ]; then + echo "\"fcitx\" \"Fcitx5: Flexible Context-aware Input Tool with eXtension support\" \\" >> $TMP/tmpscript.sh +elif [ -r /usr/bin/fcitx-autostart ]; then + echo "\"fcitx\" \"Fcitx: Flexible Context-aware Input Tool with eXtension support\" \\" >> $TMP/tmpscript.sh +fi + +# Add ibus: +if [ -r /usr/bin/ibus-autostart ]; then + echo "\"ibus\" \"IBus: Intelligent Input Bus\" \\" >> $TMP/tmpscript.sh +fi + +# Add uim: +if [ -r /usr/bin/uim-autostart ]; then + echo "\"uim\" \"uim: Universal Input Method\" \\" >> $TMP/tmpscript.sh +fi + +# Add scim: +if [ -r /usr/bin/scim-autostart ]; then + echo "\"scim\" \"SCIM: Smart Common Input Method\" \\" >> $TMP/tmpscript.sh +fi + +# Then, the tail end: +cat << EOF >> $TMP/tmpscript.sh +2> $TMP/output +if [ ! \$? = 0 ]; then + rm -f $TMP/output + echo "Canceled." + exit +fi + +dialog $BACKTITLE --title "SELECT DEFAULT INPUT METHOD FOR X/WAYLAND" --msgbox \\ +"Changes will take effect after a re-login." 0 0 +EOF + +sh $TMP/tmpscript.sh + +if [ ! -r $TMP/output ]; then + rm -f $TMP/tmpscript.sh + exit +fi + +OUTPUT=$(cat $TMP/output) + +# Create $HOME/.profile.d if it doesn't exist yet +if ! [ -e "$HOME/.profile.d" ]; then + mkdir "$HOME/.profile.d" +fi + +if [ "$OUTPUT" = "none" ]; then + +# Create the bash profile script +cat << EOF > "$HOME/.profile.d/input-method.sh" +# File auto-generated by imconfig +EOF + +cat << EOF > "$HOME/.profile.d/input-method.csh" +# File auto-generated by imconfig +EOF + +else + +# Create the bash profile script +cat << EOF > "$HOME/.profile.d/input-method.sh" +# File auto-generated by imconfig +export XMODIFIERS="@im=$OUTPUT" +export XIM=$OUTPUT +export XIM_PROGRAM=$OUTPUT +export GTK_IM_MODULE=$OUTPUT +export QT_IM_MODULE=$OUTPUT +EOF + +# Create the csh profile script +cat << EOF > "$HOME/.profile.d/input-method.csh" +# File auto-generated by imconfig +setenv XMODIFIERS "@im=$OUTPUT" +setenv XIM $OUTPUT +setenv XIM_PROGRAM $OUTPUT +setenv GTK_IM_MODULE $OUTPUT +setenv QT_IM_MODULE $OUTPUT +EOF + +fi + +rm -f $TMP/tmpscript.sh $TMP/output diff --git a/source/x/x11-skel/x11-skel.SlackBuild b/source/x/x11-skel/x11-skel.SlackBuild index 07451e76..18daa38f 100755 --- a/source/x/x11-skel/x11-skel.SlackBuild +++ b/source/x/x11-skel/x11-skel.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=x11-skel VERSION=7.7 -BUILD=${BUILD:-8} +BUILD=${BUILD:-9} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -73,6 +73,7 @@ chown -R root:root etc/X11 find etc/X11 -type f -exec chmod 644 {} \+ cp -a $CWD/scripts/xorgsetup usr/bin cp -a $CWD/scripts/xwmconfig usr/bin +cp -a $CWD/scripts/imconfig usr/bin chown root:root usr/bin/* chmod 755 usr/bin/* sed -i -e "s#lib/#lib${LIBDIRSUFFIX}/#g" usr/bin/* @@ -80,6 +81,7 @@ cp -a $CWD/scripts/setup.xwmconfig var/log/setup chown root:root var/log/setup/setup.xwmconfig chmod 755 var/log/setup/setup.xwmconfig cat $CWD/manpages/xwmconfig.1 | gzip -9c > $PKG/usr/man/man1/xwmconfig.1.gz +cat $CWD/manpages/imconfig.1 | gzip -9c > $PKG/usr/man/man1/imconfig.1.gz cp -a $CWD/scripts/xwmconfig.desktop usr/share/xsessions chown root:root usr/share/xsessions/xwmconfig.desktop chmod 644 usr/share/xsessions/xwmconfig.desktop diff --git a/source/x/xcb-imdkit/slack-desc b/source/x/xcb-imdkit/slack-desc new file mode 100644 index 00000000..7e6b805e --- /dev/null +++ b/source/x/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 (XIM protocol implementation in xcb) +xcb-imdkit: +xcb-imdkit: xcb-imdkit is an implementation of xim protocol in xcb, comparing +xcb-imdkit: with the implementation of IMDkit with Xlib, and xim inside Xlib, +xcb-imdkit: it has less memory foot print, better performance, and safer on +xcb-imdkit: malformed client. +xcb-imdkit: +xcb-imdkit: Homepage: https://fcitx-im.org/wiki/Fcitx_5 +xcb-imdkit: +xcb-imdkit: +xcb-imdkit: diff --git a/source/x/xcb-imdkit/xcb-imdkit.SlackBuild b/source/x/xcb-imdkit/xcb-imdkit.SlackBuild new file mode 100755 index 00000000..67eebec1 --- /dev/null +++ b/source/x/xcb-imdkit/xcb-imdkit.SlackBuild @@ -0,0 +1,111 @@ +#!/bin/bash + +# Copyright 2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2022 Patrick J. Volkerding, Sebeka, MN, USA +# 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) + +PKGNAM=xcb-imdkit +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i586 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac +fi + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +TMP=${TMP:-/tmp} +PKG=$TMP/package-xcb-imdkit + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf xcb-imdkit-$VERSION +tar xvf $CWD/xcb-imdkit-$VERSION.tar.?z || exit 1 +cd xcb-imdkit-$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_C_FLAGS:STRING="${SLKCFLAGS}" \ + -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + .. + make $NUMJOBS || make || exit 1 + make install/strip DESTDIR=$PKG || exit 1 +cd .. + +#find $PKG/usr/man -type f -exec gzip -9 {} \; + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a README* LICENSES/* \ + $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/x/xcb-imdkit/xcb-imdkit.url b/source/x/xcb-imdkit/xcb-imdkit.url new file mode 100644 index 00000000..65aa5dbe --- /dev/null +++ b/source/x/xcb-imdkit/xcb-imdkit.url @@ -0,0 +1 @@ +https://download.fcitx-im.org/fcitx5/xcb-imdkit/ |