wok-next view opencc/receipt @ rev 13019

Up perl-berkeleydb (0.51)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 09 10:39:06 2012 +0200 (2012-06-09)
parents 3af70ef3a7ac
children de49f29b101e
line source
1 # SliTaz package receipt.
3 PACKAGE="opencc"
4 VERSION="0.2.0"
5 CATEGORY="misc"
6 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion"
7 MAINTAINER="liupeng <hipeng@yahoo.com>"
8 DEPENDS=""
9 BUILD_DEPENDS="cmake gettext"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://code.google.com/p/opencc/"
12 WGET_URL="http://opencc.googlecode.com/files/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p $src/build
18 cd $src/build
19 cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
20 cd $src
21 make -C build || return 1
22 make install -C build DESTDIR=$DESTDIR
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/lib/ $fs/usr/share/
29 cp -a $_pkg/usr/lib/lib*.so.* $fs/usr/lib/
30 cp -a $_pkg/usr/share/opencc/ $fs/usr/share/
31 }