wok-current annotate libgooglepinyin/receipt @ rev 23322
updated perl-expect (1.21 -> 1.35)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 30 16:50:03 2020 +0100 (2020-03-30) |
parents | 73ead125eaf1 |
children | 5ea0ce1cecc0 |
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 |
hipeng@10960 | 17 # Rules to configure and make the package. |
hipeng@10960 | 18 compile_rules() |
hipeng@10960 | 19 { |
Hans-G?nter@23039 | 20 mkdir -p $install/usr/share/googlepinyin |
Hans-G?nter@23039 | 21 |
slaxemulator@10962 | 22 mkdir -p $src/build |
slaxemulator@10962 | 23 cd $src/build |
slaxemulator@10962 | 24 cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1 |
hipeng@10960 | 25 cd $src |
hipeng@10960 | 26 make -C build || return 1 |
slaxemulator@10962 | 27 make install/fast -C build DESTDIR=$DESTDIR |
Hans-G?nter@23039 | 28 |
Hans-G?nter@23039 | 29 cp -a $src/build/data/dict_pinyin.dat $install/usr/share/googlepinyin |
hipeng@10960 | 30 } |
hipeng@10960 | 31 |
hipeng@10960 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
hipeng@10960 | 33 genpkg_rules() |
hipeng@10960 | 34 { |
Hans-G?nter@23039 | 35 mkdir -p $fs/usr/lib |
Hans-G?nter@23039 | 36 mkdir -p $fs/usr/share |
Hans-G?nter@23039 | 37 |
Hans-G?nter@23039 | 38 cp -a $install/usr/lib/libgooglepinyin.so* $fs/usr/lib |
Hans-G?nter@23039 | 39 cp -a $install/usr/share/googlepinyin $fs/usr/share |
hipeng@10960 | 40 } |