wok view fcitx/receipt @ rev 24844
libunibreak: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 25 09:14:23 2022 +0000 (2022-03-25) |
parents | e3f377fbc5f0 |
children | 94dd3813f40d |
line source
1 # SliTaz package receipt.
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="http://fcitx.googlecode.com/files/$TARBALL"
13 DEPENDS="libfcitx fcitx-skin-default gtk+"
14 BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev gcc"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/fcitx/fcitx/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir -p $src/build
27 cd $src/build
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
29 cd $src
30 make -C build || return 1
31 make install/fast -C build DESTDIR=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/
38 cp -a $install/usr/bin/fcitx $fs/usr/bin/
39 cp -a $install/usr/bin/fcitx-configtool $fs/usr/bin/
40 cp -a $install/usr/bin/fcitx-remote $fs/usr/bin/
41 cp -a $install/usr/bin/fcitx4-config $fs/usr/bin/
42 cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
43 cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
44 cp -a $install/usr/share/fcitx/data/ $fs/usr/share/fcitx/
45 cp -a $install/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/
46 cp -a $install/usr/share/fcitx/table/ $fs/usr/share/fcitx/
47 cp -a $install/usr/share/applications/*.desktop $fs/usr/share/applications/
48 cp -a $install/usr/share/icons/ $fs/usr/share/
49 }