wok-current view opencc/receipt @ rev 25705

Up miss usbip, usbip-dev to 5.10.217
author Stanislas Leduc <shann@slitaz.org>
date Mon May 20 14:49:05 2024 +0000 (7 months ago)
parents 5ea0ce1cecc0
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 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 export CC=gcc-83
27 export CXX=g++-83
29 mkdir _build &&
30 cd _build &&
31 cmake .. \
32 -D CMAKE_INSTALL_PREFIX=/usr \
33 -D CMAKE_BUILD_TYPE=Release \
34 -D ENABLE_GETTEXT:BOOL=ON &&
35 make &&
36 make install DESTDIR=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 mkdir -p $fs/usr/share
45 cp -a $install/usr/lib/lib*.so* $fs/usr/lib
46 cp -a $install/usr/share/opencc $fs/usr/share
47 }