wok-current view libgooglepinyin/receipt @ rev 23712
updated udftools (2.1 -> 2.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 28 17:35:06 2020 +0100 (2020-04-28) |
parents | 73ead125eaf1 |
children | 5ea0ce1cecc0 |
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $install/usr/share/googlepinyin
22 mkdir -p $src/build
23 cd $src/build
24 cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1
25 cd $src
26 make -C build || return 1
27 make install/fast -C build DESTDIR=$DESTDIR
29 cp -a $src/build/data/dict_pinyin.dat $install/usr/share/googlepinyin
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 mkdir -p $fs/usr/share
38 cp -a $install/usr/lib/libgooglepinyin.so* $fs/usr/lib
39 cp -a $install/usr/share/googlepinyin $fs/usr/share
40 }