wok-6.x diff libgooglepinyin/receipt @ rev 23666

created recipe for spacefm-lang
author Hans-G?nter Theisgen
date Sat Apr 25 07:35:58 2020 +0100 (2020-04-25)
parents 73ead125eaf1
children 5ea0ce1cecc0
line diff
     1.1 --- a/libgooglepinyin/receipt	Wed Mar 04 09:26:41 2020 +0100
     1.2 +++ b/libgooglepinyin/receipt	Sat Apr 25 07:35:58 2020 +0100
     1.3 @@ -1,33 +1,40 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="libgooglepinyin"
     1.7 -VERSION="0.1.1"
     1.8 +VERSION="0.1.2"
     1.9  CATEGORY="development"
    1.10 -SHORT_DESC="A fork from google pinyin on android"
    1.11 +SHORT_DESC="A fork from google pinyin on android."
    1.12  MAINTAINER="lufeng369@slitaz.org"
    1.13  LICENSE="Apache"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15  WEB_SITE="https://github.com/promisejohn/libgooglepinyin"
    1.16 -WGET_URL="http://libgooglepinyin.googlecode.com/files/$TARBALL"
    1.17 +
    1.18 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.19 +WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
    1.20  
    1.21  DEPENDS=""
    1.22 -BUILD_DEPENDS="cairo-dev pango-dev intltool cmake gtk+-dev gcc"
    1.23 +BUILD_DEPENDS="cairo-dev cmake gtk+-dev intltool pango-dev"
    1.24  
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 +	mkdir	-p $install/usr/share/googlepinyin
    1.29 +
    1.30  	mkdir -p $src/build
    1.31  	cd $src/build
    1.32  	cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1
    1.33  	cd $src
    1.34  	make -C build || return 1
    1.35  	make install/fast -C build DESTDIR=$DESTDIR
    1.36 +
    1.37 +	cp -a $src/build/data/dict_pinyin.dat	$install/usr/share/googlepinyin
    1.38  }
    1.39  
    1.40  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.41  genpkg_rules()
    1.42  {
    1.43 -	mkdir -p $fs/usr/lib/ $fs/usr/share/
    1.44 -	cp -a $install/usr/lib/libgooglepinyin.so* $fs/usr/lib/
    1.45 -	cp -a $install/usr/share/googlepinyin/ $fs/usr/share/
    1.46 +	mkdir -p $fs/usr/lib
    1.47 +	mkdir -p $fs/usr/share
    1.48 +
    1.49 +	cp -a $install/usr/lib/libgooglepinyin.so*	$fs/usr/lib
    1.50 +	cp -a $install/usr/share/googlepinyin		$fs/usr/share
    1.51  }