SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "fcitx-googlepinyin"

# SliTaz package receipt.

PACKAGE="fcitx-googlepinyin"
VERSION="0.1.3"
CATEGORY="x-window"
SHORT_DESC="Googlepinyin Wrapper for Fcitx"
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-googlepinyin/$TARBALL"

DEPENDS="fcitx libgooglepinyin"
BUILD_DEPENDS="cairo-dev pango-dev intltool cmake gtk+-dev gcc fcitx fcitx-dev libgooglepinyin-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/fcitx/fcitx-googlepinyin/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $src/build
    cd $src/build
    cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1
    cd $src
    make -C build || return 1
    make install/fast -C build DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/fcitx/ $fs/usr/lib/fcitx/
    cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
    cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
    cp -a $install/usr/lib/fcitx/fcitx-googlepinyin* $fs/usr/lib/fcitx/
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)