summaryrefslogtreecommitdiff
path: root/misc/fcitx/fcitx.SlackBuild
diff options
context:
space:
mode:
authorvvoody <vvoodywang@gmail.com>2012-12-16 17:43:10 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-23 09:16:25 -0500
commit3b0b4040732c9d617a1d45385249077cfa688796 (patch)
treeddea9826be7806f192bee58e5127769c41f8cda7 /misc/fcitx/fcitx.SlackBuild
parent798c26f91202b1868c790fdf1f3df43c75ce8d36 (diff)
downloadslackbuilds-3b0b4040732c9d617a1d45385249077cfa688796.tar.gz
misc/fcitx: Updated for version 4.2.6.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/fcitx/fcitx.SlackBuild')
-rw-r--r--misc/fcitx/fcitx.SlackBuild41
1 files changed, 25 insertions, 16 deletions
diff --git a/misc/fcitx/fcitx.SlackBuild b/misc/fcitx/fcitx.SlackBuild
index b61ae0a7e0..711c80476a 100644
--- a/misc/fcitx/fcitx.SlackBuild
+++ b/misc/fcitx/fcitx.SlackBuild
@@ -1,23 +1,39 @@
#!/bin/sh
-# Slackware build script for fcitx
-
-# Written by vvoody <vvoodywang@gmail.com>
+# Slackware build script for fcitx.
+
+# Copyright 2012 vvoody <vvoodywang@gmail.com>
+#
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fcitx
-VERSION=${VERSION:-4.1.2}
+VERSION=${VERSION:-4.2.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-GTK3=${GTK3:-Off}
OPENCC=${OPENCC:-Off}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -47,7 +63,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-${VERSION}_dict.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -56,21 +72,14 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-cp -a $CWD/pinyin.tar.gz data/
-cp -a $CWD/table.tar.gz data/table/
-
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} \
- -DENABLE_DBUS=On \
- -DENABLE_CAIRO=On \
- -DENABLE_PANGO=On \
- -DENABLE_TABLE=On \
-DENABLE_GTK2_IM_MODULE=On \
- -DENABLE_GTK3_IM_MODULE=${GTK3} \
+ -DENABLE_GTK3_IM_MODULE=On \
-DENABLE_QT_IM_MODULE=On \
-DENABLE_OPENCC=${OPENCC} \
..