wok-next view fcitx/receipt @ rev 20640
Up at-spi2-atk (2.26.1), at-spi2-core (2.26.2), atk (2.26.1), tazlito (492); add catpoint; fix lzma for 64 bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 01 14:16:10 2018 +0300 (2018-05-01) |
parents | f2f8c0aa8d3e |
children | a3c581bf52b8 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fcitx"
4 VERSION="4.1.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Free Chinese Input Toy of X, a collection of Simplified Chinese input methods for Linux."
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-${VERSION}_all.tar.bz2"
10 WEB_SITE="http://code.google.com/p/fcitx/"
11 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
13 BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev"
14 SPLIT="fcitx-dev fcitx-skin-classic fcitx-skin-dark fcitx-skin-default \
15 fcitx-tools libfcitx"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $src/build
21 cd $src/build
22 cmake $src \
23 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DENABLE_QT_IM_MODULE=OFF \
25 -DENABLE_GTK2_IM_MODULE=OFF \
26 -DENABLE_GTK3_IM_MODULE=OFF \
27 -DENABLE_OPENCC=ON || return 1
28 cd $src
29 make -C build || return 1
30 make install/fast -C build DESTDIR=$DESTDIR
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 case $PACKAGE in
37 fcitx)
38 DEPENDS="libfcitx fcitx-skin-default gtk+"
39 mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/
40 cp -a $install/usr/bin/fcitx $fs/usr/bin/
41 cp -a $install/usr/bin/fcitx-configtool $fs/usr/bin/
42 cp -a $install/usr/bin/fcitx-remote $fs/usr/bin/
43 cp -a $install/usr/bin/fcitx4-config $fs/usr/bin/
44 cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
45 cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
46 cp -a $install/usr/share/fcitx/data/ $fs/usr/share/fcitx/
47 cp -a $install/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/
48 cp -a $install/usr/share/fcitx/table/ $fs/usr/share/fcitx/
49 cp -a $install/usr/share/applications/*.desktop $fs/usr/share/applications/
50 cp -a $install/usr/share/icons/ $fs/usr/share/
51 ;;
52 fcitx-dev)
53 CAT="development|The fcitx-dev package includes the header files for the FCITX package."
54 DEPENDS="libfcitx xorg-libX11-dev"
55 mkdir -p $fs/usr/lib/pkgconfig/ $fs/usr/share/
56 cp -a $install/usr/lib/libfcitx*.so $fs/usr/lib/
57 cp -a $install/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig/
58 cp -a $install/usr/share/cmake/ $fs/usr/share/
59 cp -a $install/usr/include/ $fs/usr/
60 ;;
61 fcitx-skin-classic)
62 CAT="x-window|The classic skin of fcitx."
63 mkdir -p $fs/usr/share/fcitx/skin/
64 cp -a $install/usr/share/fcitx/skin/classic/ $fs/usr/share/fcitx/skin/
65 ;;
66 fcitx-skin-dark)
67 CAT="x-window|The dark skin of fcitx."
68 mkdir -p $fs/usr/share/fcitx/skin/
69 cp -a $install/usr/share/fcitx/skin/dark/ $fs/usr/share/fcitx/dark/
70 ;;
71 fcitx-skin-default)
72 CAT="x-window|The default skin of fcitx."
73 mkdir -p $fs/usr/share/fcitx/skin/
74 cp -a $install/usr/share/fcitx/skin/default $fs/usr/share/fcitx/skin/
75 ;;
76 fcitx-tools)
77 CAT="x-window|The fcitx-tools package includes some tools of fcitx."
78 DEPENDS="fcitx"
79 mkdir -p $fs/usr/bin/
80 cp -a $install/usr/bin/createPYMB $fs/usr/bin/
81 cp -a $install/usr/bin/readPYBase $fs/usr/bin/
82 cp -a $install/usr/bin/readPYMB $fs/usr/bin/
83 cp -a $install/usr/bin/mb2org $fs/usr/bin/
84 cp -a $install/usr/bin/mb2txt $fs/usr/bin/
85 cp -a $install/usr/bin/scel2org $fs/usr/bin/
86 cp -a $install/usr/bin/txt2mb $fs/usr/bin/
87 ;;
88 libfcitx)
89 CAT="x-window|The libfcitx package provides shared libraries for FCITX."
90 mkdir -p $fs/usr/lib/fcitx/
91 cp -a $install/usr/lib/fcitx/*.so $fs/usr/lib/fcitx/
92 cp -a $install/usr/lib/libfcitx*.so.* $fs/usr/lib/
93 ;;
94 esac
95 }