wok-next diff spidermonkey/receipt @ rev 20495

make-slitaz-icons: fix previous commit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 14 03:16:12 2018 +0200 (2018-03-14)
parents 44d062fcbe9b
children f431dfa51f83
line diff
     1.1 --- a/spidermonkey/receipt	Thu Sep 26 19:16:28 2013 +0000
     1.2 +++ b/spidermonkey/receipt	Wed Mar 14 03:16:12 2018 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="spidermonkey"
     1.8  VERSION="1.8.0-rc1"
     1.9 @@ -6,18 +6,15 @@
    1.10  SHORT_DESC="Mozilla C implementation of Javascript"
    1.11  MAINTAINER="jozee@slitaz.org"
    1.12  LICENSE="MPL GPL2 LGPL2.1"
    1.13 -SOURCE="js"
    1.14 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.15 -WEB_SITE="http://www.mozilla.org/js/spidermonkey/" 
    1.16 +WEB_SITE="http://www.mozilla.org/js/spidermonkey/"
    1.17 +
    1.18 +TARBALL="js-$VERSION.tar.gz"
    1.19  WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
    1.20 -TAGS="javascript"
    1.21  
    1.22 -DEPENDS="nspr"
    1.23  BUILD_DEPENDS="nspr-dev"
    1.24 +SPLIT="spidermonkey-dev"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 +compile_rules() {
    1.30  	cd $src/src
    1.31  
    1.32  	# Fix from Archlinux
    1.33 @@ -33,11 +30,20 @@
    1.34  		DIST=$DESTDIR/usr all export 2>&1 | grep -v 'OBJ/nspr/Version'
    1.35  }
    1.36  
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 -	mkdir -p $fs/usr/lib
    1.41 -	
    1.42 -	cp -a $install/usr/bin $fs/usr	
    1.43 -	cp -a $install/usr/lib/*so* $fs/usr/lib
    1.44 +genpkg_rules() {
    1.45 +	case $PACKAGE in
    1.46 +		spidermonkey)
    1.47 +			mkdir -p $fs/usr/lib
    1.48 +
    1.49 +			cp -a $install/usr/bin $fs/usr
    1.50 +			cp -a $install/usr/lib/*so* $fs/usr/lib
    1.51 +			DEPENDS="nspr"
    1.52 +			TAGS="javascript"
    1.53 +			;;
    1.54 +		*-dev)
    1.55 +			mkdir -p $fs/usr/lib $fs/usr/include/js
    1.56 +			cp -a $install/usr/include/js/* $fs/usr/include/js
    1.57 +			cp -a $install/usr/lib/*.*a $fs/usr/lib/
    1.58 +			;;
    1.59 +	esac
    1.60  }