wok-next view opencc/receipt @ rev 20906
Update homepages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 10 12:53:17 2018 +0300 (2018-08-10) |
parents | ccb92f8ccaf6 |
children | d5aab818505e |
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://byvoid.github.io/OpenCC/"
11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/opencc/$TARBALL" # FIXME
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 }