wok-6.x diff opencc/receipt @ rev 10958
Add: opencc
author | Liu Peng <hipeng@yahoo.com> |
---|---|
date | Tue Sep 20 20:35:27 2011 +0800 (2011-09-20) |
parents | |
children | 3af70ef3a7ac |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/opencc/receipt Tue Sep 20 20:35:27 2011 +0800 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="opencc" 1.7 +VERSION="0.2.0" 1.8 +CATEGORY="" 1.9 +SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion" 1.10 +MAINTAINER="liupeng <hipeng@yahoo.com>" 1.11 +DEPENDS="" 1.12 +BUILD_DEPENDS="cmake gettext" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://code.google.com/p/opencc/" 1.15 +WGET_URL="http://opencc.googlecode.com/p/files/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + mkdir build 1.22 + pushd build 1.23 + cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1 1.24 + popd 1.25 + make -C build || return 1 1.26 + make install -C build DESTDIR=$PWD/_pkg 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/usr/lib/ $fs/usr/share/ 1.33 + cp -a $_pkg/usr/lib/lib*.so.* $fs/usr/lib/ 1.34 + cp -a $_pkg/usr/share/opencc/ $fs/usr/share/ 1.35 +}