wok view opencc/receipt @ rev 24537

updated fakeroot (1.24 -> 1.27)
author Hans-G?nter Theisgen
date Wed Feb 23 13:56:54 2022 +0100 (2022-02-23)
parents 03ab355816ec
children 6b47ab094b52
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 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/ver.\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir build
27 cd build
28 cmake $src \
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 -DCMAKE_BUILD_TYPE=Release \
31 -DENABLE_GETTEXT:BOOL=ON || return 1
32 cd $src
33 make -C build || return 1
34 make install -C build DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 mkdir -p $fs/usr/share
43 cp -a $install/usr/lib/lib*.so.* $fs/usr/lib
44 cp -a $install/usr/share/opencc $fs/usr/share
45 }