wok-current view libgooglepinyin/receipt @ rev 24329
updated at (3.1.23 -> 3.2.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 14:44:44 2022 +0100 (2022-01-27) |
parents | 5ea0ce1cecc0 |
children | b56b38cfd475 |
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/promisejohn/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 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir -p $install/usr/share/googlepinyin
28 mkdir -p $src/build
29 cd $src/build
30 cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1
31 cd $src
32 make -C build || return 1
33 make install/fast -C build DESTDIR=$DESTDIR
35 cp -a $src/build/data/dict_pinyin.dat $install/usr/share/googlepinyin
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 mkdir -p $fs/usr/share
44 cp -a $install/usr/lib/libgooglepinyin.so* $fs/usr/lib
45 cp -a $install/usr/share/googlepinyin $fs/usr/share
46 }