SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "scim-pinyin"

# SliTaz package receipt.

PACKAGE="scim-pinyin"
VERSION="0.5.92"
CATEGORY="utilities"
SHORT_DESC="Chinese PinYin input for SCIM."
MAINTAINER="rocky@slitaz.org"
LICENSE="LGPL2.1"
WEB_SITE="https://www.scim-im.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/scim/$TARBALL"
#WGET_URL="http://kent.dl.sourceforge.net/sourceforge/scim/$TARBALL"

DEPENDS="scim"
BUILD_DEPENDS="automake gtk+-dev libtool scim-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/scim/files/scim-pinyin/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/scim-pinyin-||;s|.tar.*||;q'
}
# Rules to configure and make the package.
compile_rules()
{
#    while read file; do
#        [ -f done.$file ] && continue
#        echo "Apply $file..."
#        patch -p1 < $stuff/$file || return 1
#        touch done.$file
#    done <<EOT
#cstring-gcc43.patch
#EOT

    ./bootstrap &&
    ./configure                \
        --prefix=/usr            \
        --mandir=/usr/share/man        \
        --infodir=/usr/share/info    \
        --disable-static        \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/lib        $fs/usr
    cp -a $install/usr/share/scim    $fs/usr/share

    find $fs/usr/lib -name '*.la' -exec rm {} \;
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)