wok annotate opentyrian-classic/receipt @ rev 4695

Up: pygobject* (2.20.0)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jan 02 10:00:28 2010 +0100 (2010-01-02)
parents 2c679ce49f4c
children aebcbcedcc6b
rev   line source
mallory@2383 1 # SliTaz package receipt.
mallory@2383 2
mallory@2383 3 PACKAGE="opentyrian-classic"
mallory@2383 4 VERSION="r886"
mallory@2383 5 CATEGORY="games"
mallory@2383 6 SHORT_DESC="OpenTyrian is a port of the DOS shoot-em-up Tyrian"
mallory@2383 7 MAINTAINER="mallory@skyrock.com"
pankso@3429 8 DEPENDS="libsdl libsdl-mixer libsdl-net"
paul@4288 9 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
paul@4288 10 SOURCE="opentyrian"
mallory@2383 11 WEB_SITE="http://code.google.com/p/opentyrian/"
mallory@2383 12 WGET_URL=""
mallory@2383 13
mallory@2383 14 . /etc/tazwok.conf
mallory@2383 15 # Rules to configure and make the package.
mallory@2383 16 compile_rules()
mallory@2383 17 {
paul@4288 18 hg clone https://opentyrian.googlecode.com/hg/ opentyrian
paul@4288 19 cd $SOURCE
paul@4288 20 make release
mallory@2383 21 wget http://camanis.net/tyrian/tyrian21.zip
mallory@2383 22 unzip tyrian21.zip
mallory@2383 23 }
mallory@2383 24
mallory@2383 25 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2383 26 genpkg_rules()
mallory@2383 27 {
mallory@2383 28 mkdir -p $fs/usr/bin
mallory@2383 29 mkdir -p $fs/usr/share/applications
mallory@2383 30 mkdir -p $fs/usr/share/pixmaps
mallory@2383 31 mkdir -p $fs/usr/share/opentyrian
paul@4288 32 cp $SOURCE/tyrian $fs/usr/share/opentyrian
paul@4288 33 cp $SOURCE/opentyrian.desktop $fs/usr/share/applications
paul@4288 34 cp $SOURCE/tyrian.xpm $fs/usr/share/pixmaps
paul@4288 35 cp $SOURCE/tyrian21/* $fs/usr/share/opentyrian
mallory@2383 36 rm -rf $fs/usr/share/opentyrian/*exe
mallory@2383 37 rm -rf $fs/usr/share/opentyrian/*doc
mallory@2383 38 cat > $fs/usr/bin/tyrian <<EOF
mallory@2383 39 #!/bin/sh
mallory@2383 40 here=$(pwd)
mallory@2383 41 cd /usr/share/opentyrian
mallory@2383 42 ./tyrian
mallory@2383 43 cd $here
mallory@2383 44 EOF
mallory@2383 45 chmod +x $fs/usr/bin/tyrian
mallory@2383 46 }
mallory@2383 47