wok-6.x annotate opencc/receipt @ rev 23079

updated liblinebreak and liblinebreak-dev (2.0 -> 2.1)
author Hans-G?nter Theisgen
date Tue Mar 10 16:26:23 2020 +0100 (2020-03-10)
parents 8d64ce80ab95
children 03ab355816ec
rev   line source
hipeng@10958 1 # SliTaz package receipt.
hipeng@10958 2
hipeng@10958 3 PACKAGE="opencc"
hipeng@10958 4 VERSION="0.2.0"
slaxemulator@10962 5 CATEGORY="misc"
hipeng@10958 6 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion"
pascal@16047 7 MAINTAINER="lufeng369@slitaz.org"
pascal@15600 8 LICENSE="Apache"
hipeng@10958 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20674 10 WEB_SITE="http://byvoid.github.io/OpenCC/"
slaxemulator@10963 11 WGET_URL="http://opencc.googlecode.com/files/$TARBALL"
hipeng@10958 12
pascal@15600 13 DEPENDS=""
pascal@15600 14 BUILD_DEPENDS="cmake gettext"
pascal@15600 15
hipeng@10958 16 # Rules to configure and make the package.
hipeng@10958 17 compile_rules()
hipeng@10958 18 {
slaxemulator@10962 19 mkdir -p $src/build
slaxemulator@10962 20 cd $src/build
slaxemulator@10962 21 cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
hipeng@10958 22 cd $src
hipeng@10958 23 make -C build || return 1
slaxemulator@10962 24 make install -C build DESTDIR=$DESTDIR
hipeng@10958 25 }
hipeng@10958 26
hipeng@10958 27 # Rules to gen a SliTaz package suitable for Tazpkg.
hipeng@10958 28 genpkg_rules()
hipeng@10958 29 {
hipeng@10958 30 mkdir -p $fs/usr/lib/ $fs/usr/share/
pascal@15600 31 cp -a $install/usr/lib/lib*.so.* $fs/usr/lib/
pascal@15600 32 cp -a $install/usr/share/opencc/ $fs/usr/share/
hipeng@10958 33 }