wok annotate 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 |
rev | line source |
---|---|
hipeng@10960 | 1 # SliTaz package receipt. |
hipeng@10960 | 2 |
hipeng@10960 | 3 PACKAGE="libgooglepinyin" |
Hans-G?nter@23039 | 4 VERSION="0.1.2" |
hipeng@10960 | 5 CATEGORY="development" |
Hans-G?nter@23039 | 6 SHORT_DESC="A fork from google pinyin on android." |
pascal@16047 | 7 MAINTAINER="lufeng369@slitaz.org" |
pascal@15473 | 8 LICENSE="Apache" |
pascal@20690 | 9 WEB_SITE="https://github.com/promisejohn/libgooglepinyin" |
Hans-G?nter@23039 | 10 |
Hans-G?nter@23039 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23039 | 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
hipeng@10960 | 13 |
pascal@15473 | 14 DEPENDS="" |
Hans-G?nter@23039 | 15 BUILD_DEPENDS="cairo-dev cmake gtk+-dev intltool pango-dev" |
pascal@15473 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
hipeng@10960 | 23 # Rules to configure and make the package. |
hipeng@10960 | 24 compile_rules() |
hipeng@10960 | 25 { |
Hans-G?nter@23039 | 26 mkdir -p $install/usr/share/googlepinyin |
Hans-G?nter@23039 | 27 |
slaxemulator@10962 | 28 mkdir -p $src/build |
slaxemulator@10962 | 29 cd $src/build |
slaxemulator@10962 | 30 cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1 |
hipeng@10960 | 31 cd $src |
hipeng@10960 | 32 make -C build || return 1 |
slaxemulator@10962 | 33 make install/fast -C build DESTDIR=$DESTDIR |
Hans-G?nter@23039 | 34 |
Hans-G?nter@23039 | 35 cp -a $src/build/data/dict_pinyin.dat $install/usr/share/googlepinyin |
hipeng@10960 | 36 } |
hipeng@10960 | 37 |
hipeng@10960 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
hipeng@10960 | 39 genpkg_rules() |
hipeng@10960 | 40 { |
Hans-G?nter@23039 | 41 mkdir -p $fs/usr/lib |
Hans-G?nter@23039 | 42 mkdir -p $fs/usr/share |
Hans-G?nter@23039 | 43 |
Hans-G?nter@23039 | 44 cp -a $install/usr/lib/libgooglepinyin.so* $fs/usr/lib |
Hans-G?nter@23039 | 45 cp -a $install/usr/share/googlepinyin $fs/usr/share |
hipeng@10960 | 46 } |