wok-next diff scratch/receipt @ rev 20646

grub2-efi: ls module embedded
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 02 11:12:13 2018 +0200 (2018-05-02)
parents c4e53a39395a
children 7506b35e1c6f
line diff
     1.1 --- a/scratch/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/scratch/receipt	Wed May 02 11:12:13 2018 +0200
     1.3 @@ -1,22 +1,20 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="scratch"
     1.8  VERSION="1.4.0.7"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Create and share interactive stories, games, music and art."
    1.11 +SHORT_DESC="Create and share interactive stories, games, music and art"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://scratch.mit.edu/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.src.tar.gz"
    1.17 -WEB_SITE="http://scratch.mit.edu/"
    1.18  WGET_URL="http://download.scratch.mit.edu/$TARBALL"
    1.19  
    1.20 -SUGGESTED="scratch-help"
    1.21 -DEPENDS="pango shared-mime-info squeak-vm"
    1.22  BUILD_DEPENDS="pango-dev shared-mime-info-dev"
    1.23 +SPLIT="scratch-help"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 +compile_rules() {
    1.29  	# Fix cross compilation: gcc is hardcoded
    1.30  	sed -i s"/gcc/${HOST_SYSTEM}-gcc/" src/plugins/*/Makefile &&
    1.31  	sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch &&
    1.32 @@ -43,9 +41,19 @@
    1.33  		${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes
    1.34  }
    1.35  
    1.36 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 -genpkg_rules()
    1.38 -{
    1.39 -	cp -a $install/* $fs
    1.40 -	rm -rf $fs/usr/share/mime
    1.41 +genpkg_rules() {
    1.42 +	case $PACKAGE in
    1.43 +		scratch)
    1.44 +			cp -a $install/* $fs
    1.45 +			rm -rf $fs/usr/share/mime
    1.46 +			SUGGESTED="scratch-help"
    1.47 +			DEPENDS="pango shared-mime-info squeak-vm"
    1.48 +			;;
    1.49 +		scratch-help)
    1.50 +			CAT="development|help"
    1.51 +			DEPENDS="scratch"
    1.52 +			mkdir -p $fs/usr/share/scratch
    1.53 +			cp -rp ${src}/Help $fs/usr/share/scratch
    1.54 +			;;
    1.55 +	esac
    1.56  }