wok-next view opencc/receipt @ rev 21244
updated coova-chilli again (1.3.0 -> 1.5)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 05 15:20:58 2019 +0100 (2019-12-05) |
parents | a3c581bf52b8 |
children |
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 WEB_SITE="http://byvoid.github.io/OpenCC/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/opencc/$TARBALL" # FIXME
14 BUILD_DEPENDS="cmake gettext-dev"
15 SPLIT="$PACKAGE-tools $PACKAGE $PACKAGE-dev"
17 compile_rules() {
18 mkdir build
19 cd build
20 cmake \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DCMAKE_BUILD_TYPE=Release \
23 -DENABLE_GETTEXT:BOOL=ON \
24 .. &&
25 make &&
26 make DESTDIR=$install install
27 }
29 genpkg_rules() {
30 case $PACKAGE in
31 opencc-tools)
32 copy usr/bin/ # only binaries
33 CAT="utilities|command line tools"
34 DEPENDS="opencc"
35 ;;
36 opencc)
37 copy @std @rm # all the rest
38 ;;
39 *-dev)
40 copy @dev
41 ;;
42 esac
43 }