wok view opencc/receipt @ rev 24004

Up tazinst (110)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 17 17:23:12 2021 +0000 (2021-01-17)
parents eeba7ab1dffe
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="opencc"
4 VERSION="1.0.5"
5 CATEGORY="misc"
6 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion."
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://github.com/BYVoid/OpenCC"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/ver.$VERSION.tar.gz"
14 DEPENDS=""
15 BUILD_DEPENDS="cmake gettext"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir build
21 cd build
22 cmake $src \
23 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DCMAKE_BUILD_TYPE=Release \
25 -DENABLE_GETTEXT:BOOL=ON || return 1
26 cd $src
27 make -C build || return 1
28 make install -C build DESTDIR=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 mkdir -p $fs/usr/share
37 cp -a $install/usr/lib/lib*.so.* $fs/usr/lib
38 cp -a $install/usr/share/opencc $fs/usr/share
39 }