wok annotate opencc/receipt @ rev 23918

Add fawkes
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 19 11:31:32 2020 +0000 (2020-08-19)
parents eeba7ab1dffe
children 5ea0ce1cecc0
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
hipeng@10958 17 # Rules to configure and make the package.
hipeng@10958 18 compile_rules()
hipeng@10958 19 {
Hans-G?nter@23260 20 mkdir build
Hans-G?nter@23260 21 cd build
Hans-G?nter@23260 22 cmake $src \
Hans-G?nter@23260 23 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@23260 24 -DCMAKE_BUILD_TYPE=Release \
Hans-G?nter@23260 25 -DENABLE_GETTEXT:BOOL=ON || return 1
Hans-G?nter@23260 26 cd $src
hipeng@10958 27 make -C build || return 1
slaxemulator@10962 28 make install -C build DESTDIR=$DESTDIR
hipeng@10958 29 }
hipeng@10958 30
hipeng@10958 31 # Rules to gen a SliTaz package suitable for Tazpkg.
hipeng@10958 32 genpkg_rules()
hipeng@10958 33 {
Hans-G?nter@23260 34 mkdir -p $fs/usr/lib
Hans-G?nter@23260 35 mkdir -p $fs/usr/share
Hans-G?nter@23260 36
Hans-G?nter@23260 37 cp -a $install/usr/lib/lib*.so.* $fs/usr/lib
Hans-G?nter@23260 38 cp -a $install/usr/share/opencc $fs/usr/share
hipeng@10958 39 }