wok view opencc/receipt @ rev 25604

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 18 17:30:47 2023 +0000 (16 months ago)
parents 7364ffdaaa60
children
line source
1 # SliTaz package receipt.
3 PACKAGE="opencc"
4 VERSION="1.1.3"
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="https://github.com/BYVoid/OpenCC/archive/ver.$VERSION.tar.gz"
14 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="cmake gcc83 gettext"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/[a-z\.]*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CC=gcc-83
28 export CXX=g++-83
30 mkdir _build &&
31 cd _build &&
32 cmake .. \
33 -D CMAKE_INSTALL_PREFIX=/usr \
34 -D CMAKE_BUILD_TYPE=Release \
35 -D ENABLE_GETTEXT:BOOL=ON &&
36 make &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/lib/lib*.so* $fs/usr/lib
47 cp -a $install/usr/share/opencc $fs/usr/share
48 }