wok annotate fcitx/receipt @ rev 24973

Up zsh (5.8.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 01 15:03:44 2022 +0000 (2022-05-01)
parents 544e47246b33
children
rev   line source
slaxemulator@7365 1 # SliTaz package receipt.
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"
pascal@20673 10 WEB_SITE="https://fcitx-im.org/wiki/Fcitx"
pascal@24973 11 WGET_URL="https://download.fcitx-im.org/fcitx/$TARBALL"
slaxemulator@7365 12
pascal@15002 13 DEPENDS="libfcitx fcitx-skin-default gtk+"
pascal@15002 14 BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev gcc"
pascal@15002 15
pascal@24540 16 # What is the latest version available today?
pascal@24540 17 current_version()
pascal@24540 18 {
pascal@24540 19 wget -O - https://github.com/fcitx/fcitx/tags 2>/dev/null | \
pascal@24540 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24540 21 }
pascal@24540 22
slaxemulator@7365 23 # Rules to configure and make the package.
slaxemulator@7365 24 compile_rules()
slaxemulator@7365 25 {
slaxemulator@10962 26 mkdir -p $src/build
slaxemulator@10962 27 cd $src/build
slaxemulator@10962 28 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
slaxemulator@7365 29 cd $src
hipeng@10958 30 make -C build || return 1
slaxemulator@10962 31 make install/fast -C build DESTDIR=$DESTDIR
slaxemulator@7365 32 }
slaxemulator@7365 33
slaxemulator@7365 34 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7365 35 genpkg_rules()
slaxemulator@7365 36 {
hipeng@10958 37 mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/
pascal@15002 38 cp -a $install/usr/bin/fcitx $fs/usr/bin/
pascal@15002 39 cp -a $install/usr/bin/fcitx-configtool $fs/usr/bin/
pascal@15002 40 cp -a $install/usr/bin/fcitx-remote $fs/usr/bin/
pascal@15002 41 cp -a $install/usr/bin/fcitx4-config $fs/usr/bin/
pascal@15002 42 cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
pascal@15002 43 cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
pascal@15002 44 cp -a $install/usr/share/fcitx/data/ $fs/usr/share/fcitx/
pascal@15002 45 cp -a $install/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/
pascal@15002 46 cp -a $install/usr/share/fcitx/table/ $fs/usr/share/fcitx/
pascal@15002 47 cp -a $install/usr/share/applications/*.desktop $fs/usr/share/applications/
pascal@15002 48 cp -a $install/usr/share/icons/ $fs/usr/share/
lufeng369@7680 49 }