wok-next diff opencc/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents a3c581bf52b8
children
line diff
     1.1 --- a/opencc/receipt	Fri Aug 10 12:53:17 2018 +0300
     1.2 +++ b/opencc/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -6,38 +6,38 @@
     1.4  SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion"
     1.5  MAINTAINER="lufeng369@slitaz.org"
     1.6  LICENSE="Apache"
     1.7 +WEB_SITE="http://byvoid.github.io/OpenCC/"
     1.8 +
     1.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.10 -WEB_SITE="http://byvoid.github.io/OpenCC/"
    1.11  WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/opencc/$TARBALL" # FIXME
    1.12  
    1.13 -BUILD_DEPENDS="cmake gettext"
    1.14 -SPLIT="opencc-tools opencc opencc-dev"
    1.15 +BUILD_DEPENDS="cmake gettext-dev"
    1.16 +SPLIT="$PACKAGE-tools $PACKAGE $PACKAGE-dev"
    1.17  
    1.18 -# Rules to configure and make the package.
    1.19 -compile_rules()
    1.20 -{
    1.21 -	mkdir -p $src/build
    1.22 -	cd $src/build
    1.23 -	cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
    1.24 -	cd $src
    1.25 -	make -C build || return 1
    1.26 -	make install -C build DESTDIR=$DESTDIR
    1.27 +compile_rules() {
    1.28 +	mkdir build
    1.29 +	cd    build
    1.30 +	cmake \
    1.31 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.32 +		-DCMAKE_BUILD_TYPE=Release \
    1.33 +		-DENABLE_GETTEXT:BOOL=ON \
    1.34 +		.. &&
    1.35 +	make &&
    1.36 +	make DESTDIR=$install install
    1.37  }
    1.38  
    1.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 -genpkg_rules()
    1.41 -{
    1.42 +genpkg_rules() {
    1.43  	case $PACKAGE in
    1.44 -	opencc-tools)
    1.45 -		CAT="utilities|command line tools"
    1.46 -		DEPENDS="opencc"
    1.47 -		copy usr/bin/ # only binaries
    1.48 -		;;
    1.49 -	opencc)
    1.50 -		copy @std @rm # all the rest
    1.51 -		;;
    1.52 -	opencc-dev)
    1.53 -		copy @dev
    1.54 -		;;
    1.55 +		opencc-tools)
    1.56 +			copy usr/bin/ # only binaries
    1.57 +			CAT="utilities|command line tools"
    1.58 +			DEPENDS="opencc"
    1.59 +			;;
    1.60 +		opencc)
    1.61 +			copy @std @rm # all the rest
    1.62 +			;;
    1.63 +		*-dev)
    1.64 +			copy @dev
    1.65 +			;;
    1.66  	esac
    1.67  }