wok-next view opencc/receipt @ rev 20790

1. update also pinentry-gtk to new version 2. add to both fltk-dev so fltk-config is found 3. I want to force also a build to see if it really builds OKish here (see wok-build)
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 11:23:42 2018 +0000 (2018-06-09)
parents 66ea853c51e4
children a3c581bf52b8
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="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/opencc/$TARBALL"
13 BUILD_DEPENDS="cmake gettext"
14 SPLIT="opencc-tools opencc opencc-dev"
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-tools)
32 CAT="utilities|command line tools"
33 DEPENDS="opencc"
34 copy usr/bin/ # only binaries
35 ;;
36 opencc)
37 copy @std @rm # all the rest
38 ;;
39 opencc-dev)
40 copy @dev
41 ;;
42 esac
43 }