wok-next diff libgooglepinyin/receipt @ rev 20593
Up gpm (1.20.7)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 16:28:35 2018 +0300 (2018-04-14) |
parents | 8d64ce80ab95 |
children | a3c581bf52b8 |
line diff
1.1 --- a/libgooglepinyin/receipt Mon Mar 10 11:43:00 2014 +0000 1.2 +++ b/libgooglepinyin/receipt Sat Apr 14 16:28:35 2018 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libgooglepinyin" 1.8 VERSION="0.1.1" 1.9 @@ -6,28 +6,27 @@ 1.10 SHORT_DESC="A fork from google pinyin on android" 1.11 MAINTAINER="lufeng369@slitaz.org" 1.12 LICENSE="Apache" 1.13 +WEB_SITE="http://code.google.com/p/libgooglepinyin/" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 -WEB_SITE="http://code.google.com/p/libgooglepinyin/" 1.17 WGET_URL="http://libgooglepinyin.googlecode.com/files/$TARBALL" 1.18 1.19 -DEPENDS="" 1.20 -BUILD_DEPENDS="cairo-dev pango-dev intltool cmake gtk+-dev gcc" 1.21 +BUILD_DEPENDS="cmake" 1.22 +SPLIT="libgooglepinyin-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 - mkdir -p $src/build 1.28 - cd $src/build 1.29 - cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1 1.30 - cd $src 1.31 - make -C build || return 1 1.32 - make install/fast -C build DESTDIR=$DESTDIR 1.33 +compile_rules() { 1.34 + mkdir build 1.35 + cd build 1.36 + cmake \ 1.37 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.38 + .. && 1.39 + make && 1.40 + make install/fast DESTDIR=$DESTDIR 1.41 } 1.42 1.43 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.44 -genpkg_rules() 1.45 -{ 1.46 - mkdir -p $fs/usr/lib/ $fs/usr/share/ 1.47 - cp -a $install/usr/lib/libgooglepinyin.so* $fs/usr/lib/ 1.48 - cp -a $install/usr/share/googlepinyin/ $fs/usr/share/ 1.49 +genpkg_rules() { 1.50 + case $PACKAGE in 1.51 + libgooglepinyin) copy @std;; 1.52 + *-dev) copy @dev;; 1.53 + esac 1.54 }