wok-current view libgooglepinyin/receipt @ rev 25713
Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:35:21 2024 +0000 (2 months ago) |
parents | b56b38cfd475 |
children |
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|.*/v*\(.*\).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 }