wok annotate opencc/receipt @ rev 25633

wbar: remove imlib2-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 24 10:30:04 2023 +0000 (10 months ago)
parents 7364ffdaaa60
children
rev   line source
hipeng@10958 1 # SliTaz package receipt.
hipeng@10958 2
hipeng@10958 3 PACKAGE="opencc"
Hans-G?nter@25014 4 VERSION="1.1.3"
slaxemulator@10962 5 CATEGORY="misc"
Hans-G?nter@23260 6 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion."
pascal@16047 7 MAINTAINER="lufeng369@slitaz.org"
pascal@15600 8 LICENSE="Apache"
Hans-G?nter@23260 9 WEB_SITE="https://github.com/BYVoid/OpenCC"
Hans-G?nter@23260 10
hipeng@10958 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25014 12 WGET_URL="https://github.com/BYVoid/OpenCC/archive/ver.$VERSION.tar.gz"
hipeng@10958 13
Hans-G?nter@25014 14 DEPENDS="gcc83-lib-base"
Hans-G?nter@25014 15 BUILD_DEPENDS="cmake gcc83 gettext"
pascal@15600 16
pascal@25600 17 # What is the latest version available today?
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25604 21 sed '/tag\//!d;s|.*tag/[a-z\.]*||;s|".*||;q'
pascal@24055 22 }
pascal@24055 23
hipeng@10958 24 # Rules to configure and make the package.
hipeng@10958 25 compile_rules()
hipeng@10958 26 {
Hans-G?nter@25014 27 export CC=gcc-83
Hans-G?nter@25014 28 export CXX=g++-83
Hans-G?nter@25014 29
Hans-G?nter@25014 30 mkdir _build &&
Hans-G?nter@25014 31 cd _build &&
Hans-G?nter@25014 32 cmake .. \
Hans-G?nter@25014 33 -D CMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@25014 34 -D CMAKE_BUILD_TYPE=Release \
Hans-G?nter@25014 35 -D ENABLE_GETTEXT:BOOL=ON &&
Hans-G?nter@25014 36 make &&
Hans-G?nter@25014 37 make install DESTDIR=$DESTDIR
hipeng@10958 38 }
hipeng@10958 39
hipeng@10958 40 # Rules to gen a SliTaz package suitable for Tazpkg.
hipeng@10958 41 genpkg_rules()
hipeng@10958 42 {
Hans-G?nter@23260 43 mkdir -p $fs/usr/lib
Hans-G?nter@23260 44 mkdir -p $fs/usr/share
Hans-G?nter@23260 45
Hans-G?nter@25014 46 cp -a $install/usr/lib/lib*.so* $fs/usr/lib
Hans-G?nter@25014 47 cp -a $install/usr/share/opencc $fs/usr/share
hipeng@10958 48 }