wok-next diff espeak/receipt @ rev 20536

gnome-mplayer: up (1.0.8)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 21:22:54 2018 +0300 (2018-03-30)
parents c4e53a39395a
children d5aab818505e
line diff
     1.1 --- a/espeak/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/espeak/receipt	Fri Mar 30 21:22:54 2018 +0300
     1.3 @@ -1,42 +1,47 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="espeak"
     1.8  VERSION="1.45.05"
     1.9  CATEGORY="misc"
    1.10 -SHORT_DESC="Speech synthesizer."
    1.11 +SHORT_DESC="Speech synthesizer"
    1.12  MAINTAINER="erjo@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14 +WEB_SITE="http://espeak.sourceforge.net/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION-source.zip"
    1.17 -WEB_SITE="http://espeak.sourceforge.net/"
    1.18  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.19 -TAGS="speech synthesis"
    1.20  
    1.21 -DEPENDS="portaudio jack"
    1.22 -BUILD_DEPENDS="$DEPENDS portaudio-dev jack-dev"
    1.23 +BUILD_DEPENDS="portaudio-dev jack-dev"
    1.24 +SPLIT="espeak-dev"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 +compile_rules() {
    1.30  	[ -d $src-source ] && mv $src-source $PACKAGE-$VERSION 2>/dev/null
    1.31  	cd $src/src
    1.32 -	
    1.33 +
    1.34  	# Using portaudio v19
    1.35  	cp portaudio19.h portaudio.h
    1.36 -	
    1.37 +
    1.38  	make && make DESTDIR=$DESTDIR install
    1.39  }
    1.40  
    1.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 -genpkg_rules()
    1.43 -{
    1.44 -	
    1.45 -	mkdir -p $fs/usr/lib
    1.46 -	cp -a $install/usr/bin $fs/usr
    1.47 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.48 -	cp -a $install/usr/share $fs/usr
    1.49 -	
    1.50 -	# Make symlink
    1.51 -	#cd $fs/usr/lib
    1.52 -	#ln -s libespeak.so.1.1.42 libespeak.so.1
    1.53 +genpkg_rules() {
    1.54 +	case $PACKAGE in
    1.55 +		espeak)
    1.56 +			mkdir -p $fs/usr/lib
    1.57 +			cp -a $install/usr/bin $fs/usr
    1.58 +			cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.59 +			cp -a $install/usr/share $fs/usr
    1.60 +
    1.61 +			# Make symlink
    1.62 +			#cd $fs/usr/lib
    1.63 +			#ln -s libespeak.so.1.1.42 libespeak.so.1
    1.64 +			DEPENDS="portaudio jack"
    1.65 +			TAGS="speech synthesis"
    1.66 +			;;
    1.67 +		*-dev)
    1.68 +			mkdir -p $fs/usr/lib
    1.69 +			cp -a $install/usr/lib/*.a* $fs/usr/lib
    1.70 +			cp -a $install/usr/include $fs/usr
    1.71 +			;;
    1.72 +	esac
    1.73  }
    1.74 -