wok-current view fcitx-googlepinyin/receipt @ rev 25623
Use default gcc 6.3 for jack-audio-connection-kit
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Sep 04 18:47:50 2023 +0000 (14 months ago) |
parents | 544e47246b33 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="fcitx-googlepinyin"
4 VERSION="0.1.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Googlepinyin Wrapper for Fcitx"
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://fcitx-im.org/wiki/Fcitx"
11 WGET_URL="https://download.fcitx-im.org/fcitx-googlepinyin/$TARBALL"
13 DEPENDS="fcitx libgooglepinyin"
14 BUILD_DEPENDS="cairo-dev pango-dev intltool cmake gtk+-dev gcc fcitx fcitx-dev libgooglepinyin-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/fcitx/fcitx-googlepinyin/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 || 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/share/fcitx/ $fs/usr/lib/fcitx/
38 cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
39 cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
40 cp -a $install/usr/lib/fcitx/fcitx-googlepinyin* $fs/usr/lib/fcitx/
41 }