wok view fcitx-configtool/receipt @ rev 24540

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 16:54:57 2022 +0000 (2022-02-23)
parents e3f377fbc5f0
children 94dd3813f40d
line source
1 # SliTaz package receipt.
3 PACKAGE="fcitx-configtool"
4 VERSION="0.3.1"
5 CATEGORY="x-window"
6 SHORT_DESC="fcitx chinese input-medthod GUI configure tool"
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="http://fcitx.googlecode.com/files/$TARBALL"
13 DEPENDS="fcitx gtk+"
14 BUILD_DEPENDS="fcitx libunique-dev gtk+-dev cmake intltool xorg-libXrender-dev \
15 pkg-config cairo-dev pango-dev fcitx-dev file"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/fcitx/fcitx-configtool/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 sed -i 's|<glib/.*h>|<glib.h>|' gtk/sub_config_parser.[hc] gtk/config_widget.h
29 cmake -DCMAKE_INSTALL_PREFIX=/usr
30 make && make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr $fs/
38 }