wok view libgooglepinyin/receipt @ rev 24226
updated perl-io-tty (1.14 -> 1.16)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 17:52:39 2021 +0100 (2021-12-31) |
parents | 2147274c2cdf |
children | ac8ca9758df1 |
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*}/releases 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 }