Receipt for package "scim"
# SliTaz package receipt. PACKAGE="scim" VERSION="1.4.18" CATEGORY="utilities" SHORT_DESC="Smart Common Input Method (SCIM)." MAINTAINER="rocky@slitaz.org" LICENSE="LGPL2.1" WEB_SITE="https://www.scim-im.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/scim-im/$PACKAGE/archive/$VERSION.tar.gz" DEPENDS="gcc-lib-base gtk+" BUILD_DEPENDS="gtk+-dev libtool xz gettext-tools" CONFIG_FILES="/etc/scim/config /etc/scim/global" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # while read file; do # [ -f done.$file ] && continue # echo "Apply $file..." # patch -p1 -i $stuff/$file || return 1 # touch done.$file # done <<EOT #scim-glibc-2.10.patch #EOT ./bootstrap && ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-x \ --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES && make $MAKEFLAGS -j 1 && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/pixmaps cp -a $install/etc $fs/ cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/share/scim $fs/usr/share cp $install/usr/share/pixmaps/scim-setup.png \ $fs/usr/share/pixmaps find $fs/usr/lib -name '*.la' -exec rm {} \; find $fs/usr/lib -name '*.a' -exec rm {} \; rm -rf $fs/usr/lib/pkgconfig chmod +x $fs/usr/bin/scim-setup } post_install() { newline action 'Updating gtk.immodules... ' chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules status cat <<EOT In order to start scim and use chinese after boot time, add the following code to your autostart.sh(openbox): ------------ export XMODIFIERS=@im=SCIM export XIM="scim" export XINPUT="xim" export XIM_PROGRAM="scim -d" export GTK_IM_MODULE=scim export QT_IM_MODULE=scim scim -d & ------------ EOT } post_remove() { /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules }
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)