wok view opencc/receipt @ rev 25672

Up minidlna (1.3.3), phpmyadmin (5.2.1), pidgin (2.14.13), redis (7.2.4), rsync (3.2.7), rust (1.76.0), screen (4.9.1), squashfs (4.6.1), squid (6.7), stunnel (5.72), tcpdump (4.99.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 26 14:07:44 2024 +0000 (10 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 }