wok-6.x rev 8566

imported patch get/opentyrian
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Feb 13 22:57:56 2011 +0100 (2011-02-13)
parents 8fed7e596e79
children 64b7f5075e12
files opentyrian-classic/receipt opentyrian/receipt
line diff
     1.1 --- a/opentyrian-classic/receipt	Sun Feb 13 22:57:56 2011 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,53 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="opentyrian-classic"
     1.7 -VERSION="r886"
     1.8 -CATEGORY="games"
     1.9 -SHORT_DESC="OpenTyrian is a port of the DOS shoot-em-up Tyrian"
    1.10 -MAINTAINER="mallory@skyrock.com"
    1.11 -DEPENDS="libsdl libsdl-mixer libsdl-net"
    1.12 -BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
    1.13 -SOURCE="opentyrian"
    1.14 -WEB_SITE="http://code.google.com/p/opentyrian/"
    1.15 -WGET_URL=""
    1.16 -
    1.17 -# Rules to configure and make the package.
    1.18 -compile_rules()
    1.19 -{
    1.20 -	TARBALL=$SOURCES_REPOSITORY/$PACKAGE.tar.gz
    1.21 -	if [ -f $TARBALL ]; then
    1.22 -		tar xzf $TARBALL
    1.23 -	else
    1.24 -		hg clone https://opentyrian.googlecode.com/hg/ opentyrian  
    1.25 -		tar czf $TARBALL opentyrian
    1.26 -	fi
    1.27 -	cd $SOURCE
    1.28 -	make release
    1.29 -	[ -f $SOURCES_REPOSITORY/tyrian21.zip ] ||
    1.30 -	wget http://camanis.net/tyrian/tyrian21.zip -P $SOURCES_REPOSITORY
    1.31 -	unzip $SOURCES_REPOSITORY/tyrian21.zip
    1.32 -}
    1.33 -
    1.34 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 -genpkg_rules()
    1.36 -{
    1.37 -	mkdir -p $fs/usr/bin
    1.38 -	mkdir -p $fs/usr/share/applications
    1.39 -	mkdir -p $fs/usr/share/pixmaps
    1.40 -	mkdir -p $fs/usr/share/opentyrian
    1.41 -	cp $SOURCE/tyrian $fs/usr/share/opentyrian
    1.42 -	cp $SOURCE/opentyrian.desktop $fs/usr/share/applications
    1.43 -	cp $SOURCE/tyrian.xpm $fs/usr/share/pixmaps
    1.44 -	cp $SOURCE/tyrian21/* $fs/usr/share/opentyrian
    1.45 -	rm -rf $fs/usr/share/opentyrian/*exe
    1.46 -	rm -rf $fs/usr/share/opentyrian/*doc
    1.47 -	cat > $fs/usr/bin/tyrian <<EOF
    1.48 -#!/bin/sh
    1.49 -here=$(pwd)
    1.50 -cd /usr/share/opentyrian
    1.51 -./tyrian
    1.52 -cd $here
    1.53 -EOF
    1.54 -	chmod +x $fs/usr/bin/tyrian
    1.55 -}
    1.56 -
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/opentyrian/receipt	Sun Feb 13 22:57:56 2011 +0100
     2.3 @@ -0,0 +1,38 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="opentyrian"
     2.7 +VERSION="r886"
     2.8 +CATEGORY="games"
     2.9 +SHORT_DESC="OpenTyrian is a port of the DOS shoot-em-up Tyrian"
    2.10 +MAINTAINER="mallory@skyrock.com"
    2.11 +DEPENDS="libsdl libsdl-mixer libsdl-net tyrian"
    2.12 +BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
    2.13 +SOURCE="opentyrian"
    2.14 +WEB_SITE="http://code.google.com/p/opentyrian/"
    2.15 +WGET_URL="mercurial|https://opentyrian.googlecode.com/hg/"
    2.16 +
    2.17 +# Rules to configure and make the package.
    2.18 +compile_rules()
    2.19 +{
    2.20 +	cd $src
    2.21 +	make release
    2.22 +}
    2.23 +
    2.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.25 +genpkg_rules()
    2.26 +{
    2.27 +	mkdir -p $fs/usr/bin $fs/usr/share/applications \
    2.28 +		$fs/usr/share/pixmaps $fs/usr/games/opentyrian
    2.29 +	cp $src/opentyrian $fs/usr/games/opentyrian
    2.30 +	cp $src/linux/opentyrian.desktop $fs/usr/share/applications
    2.31 +	cp $src/linux/icons/tyrian-32.png $fs/usr/share/pixmaps/opentyrian.png
    2.32 +	cat > $fs/usr/bin/opentyrian <<EOF
    2.33 +#!/bin/sh
    2.34 +here=$(pwd)
    2.35 +cd /usr/games/opentyrian
    2.36 +./opentyrian
    2.37 +cd $here
    2.38 +EOF
    2.39 +	chmod +x $fs/usr/bin/opentyrian
    2.40 +}
    2.41 +