wok-current view libgooglepinyin/receipt @ rev 25109

Up perl-date-manip (6.88)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 25 09:21:55 2022 +0000 (2022-06-25)
parents ac8ca9758df1
children fbe88431f963
line source
1 # SliTaz package receipt.
3 PACKAGE="libgooglepinyin"
4 VERSION="0.1.2"
5 CATEGORY="development"
6 SHORT_DESC="A fork from google pinyin on android."
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://github.com/palanceli/libgooglepinyin/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS=""
15 BUILD_DEPENDS="cairo-dev cmake gtk+-dev intltool pango-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $install/usr/share/googlepinyin
29 mkdir -p $src/build
30 cd $src/build
31 cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1
32 cd $src
33 make -C build || return 1
34 make install/fast -C build DESTDIR=$DESTDIR
36 cp -a $src/build/data/dict_pinyin.dat $install/usr/share/googlepinyin
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/libgooglepinyin.so* $fs/usr/lib
46 cp -a $install/usr/share/googlepinyin $fs/usr/share
47 }