# SliTaz package receipt. PACKAGE="fcitx-configtool" VERSION="0.3.1" CATEGORY="x-window" SHORT_DESC="fcitx chinese input-medthod GUI configure tool" MAINTAINER="lufeng369@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://fcitx-im.org/wiki/Fcitx" WGET_URL="https://download.fcitx-im.org/fcitx-configtool/$TARBALL" DEPENDS="fcitx gtk+" BUILD_DEPENDS="fcitx libunique-dev gtk+-dev cmake intltool xorg-libXrender-dev \ pkg-config cairo-dev pango-dev fcitx-dev file" # What is the latest version available today? current_version() { wget -O - https://github.com/fcitx/fcitx-configtool/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { cd $src sed -i 's|||' gtk/sub_config_parser.[hc] gtk/config_widget.h cmake -DCMAKE_INSTALL_PREFIX=/usr make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr $fs/ }