wok-next diff fcitx/receipt @ rev 20445
gcc: fix symlink /lib/cpp; glibc: undo '--enable-obsolete-rpc' due to errors; libtirpc: up 1.0.2; pam and busybox: use libtirpc.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Feb 27 14:06:41 2018 +0200 (2018-02-27) |
parents | 8d64ce80ab95 |
children | d43bf7aae921 |
line diff
1.1 --- a/fcitx/receipt Mon Mar 10 11:43:00 2014 +0000 1.2 +++ b/fcitx/receipt Tue Feb 27 14:06:41 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="fcitx" 1.8 VERSION="4.1.2" 1.9 @@ -10,33 +10,86 @@ 1.10 WEB_SITE="http://code.google.com/p/fcitx/" 1.11 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL" 1.12 1.13 -DEPENDS="libfcitx fcitx-skin-default gtk+" 1.14 -BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev gcc" 1.15 +BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev" 1.16 +SPLIT="fcitx-dev fcitx-skin-classic fcitx-skin-dark fcitx-skin-default \ 1.17 +fcitx-tools libfcitx" 1.18 1.19 # Rules to configure and make the package. 1.20 compile_rules() 1.21 { 1.22 - mkdir -p $src/build 1.23 - cd $src/build 1.24 - cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_QT_IM_MODULE=OFF -DENABLE_GTK2_IM_MODULE=OFF -DENABLE_GTK3_IM_MODULE=OFF -DENABLE_OPENCC=ON || return 1 1.25 - cd $src 1.26 - make -C build || return 1 1.27 - make install/fast -C build DESTDIR=$DESTDIR 1.28 + mkdir -p $src/build 1.29 + cd $src/build 1.30 + cmake $src \ 1.31 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.32 + -DENABLE_QT_IM_MODULE=OFF \ 1.33 + -DENABLE_GTK2_IM_MODULE=OFF \ 1.34 + -DENABLE_GTK3_IM_MODULE=OFF \ 1.35 + -DENABLE_OPENCC=ON || return 1 1.36 + cd $src 1.37 + make -C build || return 1 1.38 + make install/fast -C build DESTDIR=$DESTDIR 1.39 } 1.40 1.41 # Rules to gen a SliTaz package suitable for Tazpkg. 1.42 genpkg_rules() 1.43 { 1.44 - mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/ 1.45 - cp -a $install/usr/bin/fcitx $fs/usr/bin/ 1.46 - cp -a $install/usr/bin/fcitx-configtool $fs/usr/bin/ 1.47 - cp -a $install/usr/bin/fcitx-remote $fs/usr/bin/ 1.48 - cp -a $install/usr/bin/fcitx4-config $fs/usr/bin/ 1.49 - cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/ 1.50 - cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/ 1.51 - cp -a $install/usr/share/fcitx/data/ $fs/usr/share/fcitx/ 1.52 - cp -a $install/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/ 1.53 - cp -a $install/usr/share/fcitx/table/ $fs/usr/share/fcitx/ 1.54 - cp -a $install/usr/share/applications/*.desktop $fs/usr/share/applications/ 1.55 - cp -a $install/usr/share/icons/ $fs/usr/share/ 1.56 + case $PACKAGE in 1.57 + fcitx) 1.58 + DEPENDS="libfcitx fcitx-skin-default gtk+" 1.59 + mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/ 1.60 + cp -a $install/usr/bin/fcitx $fs/usr/bin/ 1.61 + cp -a $install/usr/bin/fcitx-configtool $fs/usr/bin/ 1.62 + cp -a $install/usr/bin/fcitx-remote $fs/usr/bin/ 1.63 + cp -a $install/usr/bin/fcitx4-config $fs/usr/bin/ 1.64 + cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/ 1.65 + cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/ 1.66 + cp -a $install/usr/share/fcitx/data/ $fs/usr/share/fcitx/ 1.67 + cp -a $install/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/ 1.68 + cp -a $install/usr/share/fcitx/table/ $fs/usr/share/fcitx/ 1.69 + cp -a $install/usr/share/applications/*.desktop $fs/usr/share/applications/ 1.70 + cp -a $install/usr/share/icons/ $fs/usr/share/ 1.71 + ;; 1.72 + fcitx-dev) 1.73 + CAT="development|The fcitx-dev package includes the header files for the FCITX package." 1.74 + DEPENDS="libfcitx xorg-libX11-dev pkg-config" 1.75 + mkdir -p $fs/usr/lib/pkgconfig/ $fs/usr/share/ 1.76 + cp -a $install/usr/lib/libfcitx*.so $fs/usr/lib/ 1.77 + cp -a $install/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig/ 1.78 + cp -a $install/usr/share/cmake/ $fs/usr/share/ 1.79 + cp -a $install/usr/include/ $fs/usr/ 1.80 + ;; 1.81 + fcitx-skin-classic) 1.82 + CAT="x-window|The classic skin of fcitx." 1.83 + mkdir -p $fs/usr/share/fcitx/skin/ 1.84 + cp -a $install/usr/share/fcitx/skin/classic/ $fs/usr/share/fcitx/skin/ 1.85 + ;; 1.86 + fcitx-skin-dark) 1.87 + CAT="x-window|The dark skin of fcitx." 1.88 + mkdir -p $fs/usr/share/fcitx/skin/ 1.89 + cp -a $install/usr/share/fcitx/skin/dark/ $fs/usr/share/fcitx/dark/ 1.90 + ;; 1.91 + fcitx-skin-default) 1.92 + CAT="x-window|The default skin of fcitx." 1.93 + mkdir -p $fs/usr/share/fcitx/skin/ 1.94 + cp -a $install/usr/share/fcitx/skin/default $fs/usr/share/fcitx/skin/ 1.95 + ;; 1.96 + fcitx-tools) 1.97 + CAT="x-window|The fcitx-tools package includes some tools of fcitx." 1.98 + DEPENDS="fcitx" 1.99 + mkdir -p $fs/usr/bin/ 1.100 + cp -a $install/usr/bin/createPYMB $fs/usr/bin/ 1.101 + cp -a $install/usr/bin/readPYBase $fs/usr/bin/ 1.102 + cp -a $install/usr/bin/readPYMB $fs/usr/bin/ 1.103 + cp -a $install/usr/bin/mb2org $fs/usr/bin/ 1.104 + cp -a $install/usr/bin/mb2txt $fs/usr/bin/ 1.105 + cp -a $install/usr/bin/scel2org $fs/usr/bin/ 1.106 + cp -a $install/usr/bin/txt2mb $fs/usr/bin/ 1.107 + ;; 1.108 + libfcitx) 1.109 + CAT="x-window|The libfcitx package provides shared libraries for FCITX." 1.110 + mkdir -p $fs/usr/lib/fcitx/ 1.111 + cp -a $install/usr/lib/fcitx/*.so $fs/usr/lib/fcitx/ 1.112 + cp -a $install/usr/lib/libfcitx*.so.* $fs/usr/lib/ 1.113 + ;; 1.114 + esac 1.115 }