wok-next annotate fcitx/receipt @ rev 20845

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