wok diff opencc/receipt @ rev 23837

Up freetype (2.10.2), git (2.26.2), glpi (9.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 01 10:44:24 2020 +0000 (2020-06-01)
parents eeba7ab1dffe
children 5ea0ce1cecc0
line diff
     1.1 --- a/opencc/receipt	Thu Jan 24 18:16:34 2019 +0100
     1.2 +++ b/opencc/receipt	Mon Jun 01 10:44:24 2020 +0000
     1.3 @@ -1,14 +1,15 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="opencc"
     1.7 -VERSION="0.2.0"
     1.8 +VERSION="1.0.5"
     1.9  CATEGORY="misc"
    1.10 -SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion"
    1.11 +SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion."
    1.12  MAINTAINER="lufeng369@slitaz.org"
    1.13  LICENSE="Apache"
    1.14 +WEB_SITE="https://github.com/BYVoid/OpenCC"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://byvoid.github.io/OpenCC/"
    1.18 -WGET_URL="http://opencc.googlecode.com/files/$TARBALL"
    1.19 +WGET_URL="$WEB_SITE/archive/ver.$VERSION.tar.gz"
    1.20  
    1.21  DEPENDS=""
    1.22  BUILD_DEPENDS="cmake gettext"
    1.23 @@ -16,10 +17,13 @@
    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 -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
    1.30 -	cd $src
    1.31 +	mkdir	build
    1.32 +	cd	build
    1.33 +	cmake	$src				\
    1.34 +		-DCMAKE_INSTALL_PREFIX=/usr	\
    1.35 +		-DCMAKE_BUILD_TYPE=Release	\
    1.36 +		-DENABLE_GETTEXT:BOOL=ON || return 1
    1.37 +	cd	$src
    1.38  	make -C build || return 1
    1.39  	make install -C build DESTDIR=$DESTDIR
    1.40  }
    1.41 @@ -27,7 +31,9 @@
    1.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.43  genpkg_rules()
    1.44  {
    1.45 -	mkdir -p $fs/usr/lib/ $fs/usr/share/
    1.46 -	cp -a $install/usr/lib/lib*.so.* $fs/usr/lib/
    1.47 -	cp -a $install/usr/share/opencc/ $fs/usr/share/
    1.48 +	mkdir -p $fs/usr/lib
    1.49 +	mkdir -p $fs/usr/share
    1.50 +
    1.51 +	cp -a $install/usr/lib/lib*.so.*	$fs/usr/lib
    1.52 +	cp -a $install/usr/share/opencc		$fs/usr/share
    1.53  }