wok-next view fcitx/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | d5aab818505e |
children |
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="https://fcitx-im.org/wiki/Fcitx"
11 WGET_URL="https://download.fcitx-im.org/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk2-dev dbus-dev opencc-dev"
14 SPLIT="$PACKAGE-dev $PACKAGE-skin-classic $PACKAGE-skin-dark \
15 $PACKAGE-skin-default $PACKAGE-tools libfcitx"
17 compile_rules() {
18 mkdir build
19 cd build
20 cmake \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DENABLE_QT_IM_MODULE=OFF \
23 -DENABLE_GTK2_IM_MODULE=OFF \
24 -DENABLE_GTK3_IM_MODULE=OFF \
25 -DENABLE_OPENCC=ON \
26 .. &&
27 make &&
28 make DESTDIR=$install install/fast
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 fcitx)
34 DEPENDS="libfcitx fcitx-skin-default gtk2"
35 mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/
36 cp -a $install/usr/bin/fcitx $fs/usr/bin/
37 cp -a $install/usr/bin/fcitx-configtool $fs/usr/bin/
38 cp -a $install/usr/bin/fcitx-remote $fs/usr/bin/
39 cp -a $install/usr/bin/fcitx4-config $fs/usr/bin/
40 cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
41 cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
42 cp -a $install/usr/share/fcitx/data/ $fs/usr/share/fcitx/
43 cp -a $install/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/
44 cp -a $install/usr/share/fcitx/table/ $fs/usr/share/fcitx/
45 cp -a $install/usr/share/applications/*.desktop $fs/usr/share/applications/
46 cp -a $install/usr/share/icons/ $fs/usr/share/
47 ;;
48 *-dev)
49 DEPENDS="libfcitx libx11-dev"
50 mkdir -p $fs/usr/lib/pkgconfig/ $fs/usr/share/
51 cp -a $install/usr/lib/libfcitx*.so $fs/usr/lib/
52 cp -a $install/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig/
53 cp -a $install/usr/share/cmake/ $fs/usr/share/
54 cp -a $install/usr/include/ $fs/usr/
55 ;;
56 *-skin-classic)
57 CAT="x-window|classic skin"
58 mkdir -p $fs/usr/share/fcitx/skin/
59 cp -a $install/usr/share/fcitx/skin/classic/ $fs/usr/share/fcitx/skin/
60 ;;
61 *-skin-dark)
62 CAT="x-window|dark skin"
63 mkdir -p $fs/usr/share/fcitx/skin/
64 cp -a $install/usr/share/fcitx/skin/dark/ $fs/usr/share/fcitx/dark/
65 ;;
66 *-skin-default)
67 CAT="x-window|default skin"
68 mkdir -p $fs/usr/share/fcitx/skin/
69 cp -a $install/usr/share/fcitx/skin/default $fs/usr/share/fcitx/skin/
70 ;;
71 *-tools)
72 CAT="x-window|some tools"
73 DEPENDS="fcitx"
74 mkdir -p $fs/usr/bin/
75 cp -a $install/usr/bin/createPYMB $fs/usr/bin/
76 cp -a $install/usr/bin/readPYBase $fs/usr/bin/
77 cp -a $install/usr/bin/readPYMB $fs/usr/bin/
78 cp -a $install/usr/bin/mb2org $fs/usr/bin/
79 cp -a $install/usr/bin/mb2txt $fs/usr/bin/
80 cp -a $install/usr/bin/scel2org $fs/usr/bin/
81 cp -a $install/usr/bin/txt2mb $fs/usr/bin/
82 ;;
83 libfcitx)
84 CAT="x-window|shared libraries"
85 mkdir -p $fs/usr/lib/fcitx/
86 cp -a $install/usr/lib/fcitx/*.so $fs/usr/lib/fcitx/
87 cp -a $install/usr/lib/libfcitx*.so.* $fs/usr/lib/
88 ;;
89 esac
90 }