SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "opencc"

# SliTaz package receipt.

PACKAGE="opencc"
VERSION="0.2.0"
CATEGORY="misc"
SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion"
MAINTAINER="liupeng <hipeng@yahoo.com>"
DEPENDS=""
BUILD_DEPENDS="cmake gettext"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://code.google.com/p/opencc/"
WGET_URL="http://opencc.googlecode.com/files/$TARBALL"

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/ $fs/usr/share/
    cp -a $_pkg/usr/lib/lib*.so.* $fs/usr/lib/
    cp -a $_pkg/usr/share/opencc/ $fs/usr/share/
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)