wok-6.x annotate libgooglepinyin/receipt @ rev 25438
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 01 11:12:31 2022 +0000 (23 months ago) |
parents | b56b38cfd475 |
children |
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@25094 | 9 WEB_SITE="https://github.com/palanceli/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@25094 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24299 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@25375 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
hipeng@10960 | 24 # Rules to configure and make the package. |
hipeng@10960 | 25 compile_rules() |
hipeng@10960 | 26 { |
Hans-G?nter@23039 | 27 mkdir -p $install/usr/share/googlepinyin |
Hans-G?nter@23039 | 28 |
slaxemulator@10962 | 29 mkdir -p $src/build |
slaxemulator@10962 | 30 cd $src/build |
slaxemulator@10962 | 31 cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1 |
hipeng@10960 | 32 cd $src |
hipeng@10960 | 33 make -C build || return 1 |
slaxemulator@10962 | 34 make install/fast -C build DESTDIR=$DESTDIR |
Hans-G?nter@23039 | 35 |
Hans-G?nter@23039 | 36 cp -a $src/build/data/dict_pinyin.dat $install/usr/share/googlepinyin |
hipeng@10960 | 37 } |
hipeng@10960 | 38 |
hipeng@10960 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
hipeng@10960 | 40 genpkg_rules() |
hipeng@10960 | 41 { |
Hans-G?nter@23039 | 42 mkdir -p $fs/usr/lib |
Hans-G?nter@23039 | 43 mkdir -p $fs/usr/share |
Hans-G?nter@23039 | 44 |
Hans-G?nter@23039 | 45 cp -a $install/usr/lib/libgooglepinyin.so* $fs/usr/lib |
Hans-G?nter@23039 | 46 cp -a $install/usr/share/googlepinyin $fs/usr/share |
hipeng@10960 | 47 } |