wok-current annotate opencc/receipt @ rev 24885

updated mcabber (0.9.10 -> 1.1.2)
author Hans-G?nter Theisgen
date Fri Apr 01 07:52:41 2022 +0100 (2022-04-01)
parents 03ab355816ec
children 6b47ab094b52
rev   line source
hipeng@10958 1 # SliTaz package receipt.
hipeng@10958 2
hipeng@10958 3 PACKAGE="opencc"
Hans-G?nter@23260 4 VERSION="1.0.5"
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@23260 12 WGET_URL="$WEB_SITE/archive/ver.$VERSION.tar.gz"
hipeng@10958 13
pascal@15600 14 DEPENDS=""
pascal@15600 15 BUILD_DEPENDS="cmake gettext"
pascal@15600 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/ver.\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
hipeng@10958 23 # Rules to configure and make the package.
hipeng@10958 24 compile_rules()
hipeng@10958 25 {
Hans-G?nter@23260 26 mkdir build
Hans-G?nter@23260 27 cd build
Hans-G?nter@23260 28 cmake $src \
Hans-G?nter@23260 29 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@23260 30 -DCMAKE_BUILD_TYPE=Release \
Hans-G?nter@23260 31 -DENABLE_GETTEXT:BOOL=ON || return 1
Hans-G?nter@23260 32 cd $src
hipeng@10958 33 make -C build || return 1
slaxemulator@10962 34 make install -C build DESTDIR=$DESTDIR
hipeng@10958 35 }
hipeng@10958 36
hipeng@10958 37 # Rules to gen a SliTaz package suitable for Tazpkg.
hipeng@10958 38 genpkg_rules()
hipeng@10958 39 {
Hans-G?nter@23260 40 mkdir -p $fs/usr/lib
Hans-G?nter@23260 41 mkdir -p $fs/usr/share
Hans-G?nter@23260 42
Hans-G?nter@23260 43 cp -a $install/usr/lib/lib*.so.* $fs/usr/lib
Hans-G?nter@23260 44 cp -a $install/usr/share/opencc $fs/usr/share
hipeng@10958 45 }