wok-next view opencc/receipt @ rev 20179

Up ocsinventory (2.2) opencc (0.4.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 02 11:09:53 2017 +0100 (2017-11-02)
parents 8d64ce80ab95
children 66ea853c51e4
line source
1 # SliTaz package receipt v2.
3 PACKAGE="opencc"
4 VERSION="0.4.3"
5 CATEGORY="misc"
6 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion"
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="Apache"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://code.google.com/p/opencc/"
11 WGET_URL="http://opencc.googlecode.com/files/$TARBALL"
13 BUILD_DEPENDS="cmake gettext"
14 SPLIT="opencc opencc-dev opencc-tools"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mkdir -p $src/build
20 cd $src/build
21 cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
22 cd $src
23 make -C build || return 1
24 make install -C build DESTDIR=$DESTDIR
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 case $PACKAGE in
31 opencc)
32 mkdir -p $fs/usr/lib/ $fs/usr/share/
33 cp -a $install/usr/lib/lib*.so.* $fs/usr/lib/
34 cp -a $install/usr/share/opencc/ $fs/usr/share/
35 ;;
36 opencc-dev)
37 CAT="development|Development files for OpenCC"
38 DEPENDS="opencc pkg-config"
39 mkdir -p $fs/usr/lib/pkgconfig/
40 cp -a $install/usr/include $fs/usr
41 cp -a $install/usr/lib/*.so $fs/usr/lib/
42 cp -a $install/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig/
43 ;;
44 opencc-tools)
45 CAT="utilities|Command line tools for OpenCC"
46 DEPENDS="opencc"
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 ;;
50 esac
51 }