wok annotate opentyrian-classic/receipt @ rev 2654
Add: hal-info
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Sat Apr 18 17:38:03 2009 +0200 (2009-04-18) |
parents | aecb1ba84c83 |
children | e8024c01fc47 |
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" |
pascal@2459 | 8 DEPENDS="libSDL libsdl-mixer libiconv libsdl-net" |
mallory@2383 | 9 BUILD_DEPENDS="subversion libSDL-dev libsdl-mixer-dev" |
mallory@2383 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
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 { |
mallory@2383 | 18 cd "$WOK/$PACKAGE" |
mallory@2383 | 19 svn checkout -$VERSION http://opentyrian.googlecode.com/svn/trunk/classic "$PACKAGE-$VERSION" |
mallory@2383 | 20 cd $src |
pascal@2459 | 21 make || return 1 |
mallory@2383 | 22 wget http://camanis.net/tyrian/tyrian21.zip |
mallory@2383 | 23 unzip tyrian21.zip |
mallory@2383 | 24 } |
mallory@2383 | 25 |
mallory@2383 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2383 | 27 genpkg_rules() |
mallory@2383 | 28 { |
mallory@2383 | 29 mkdir -p $fs/usr/bin |
mallory@2383 | 30 mkdir -p $fs/usr/share/applications |
mallory@2383 | 31 mkdir -p $fs/usr/share/pixmaps |
mallory@2383 | 32 mkdir -p $fs/usr/share/opentyrian |
mallory@2383 | 33 cp $src/tyrian $fs/usr/share/opentyrian |
mallory@2383 | 34 cp $src/opentyrian.desktop $fs/usr/share/applications |
mallory@2383 | 35 cp $src/tyrian.xpm $fs/usr/share/pixmaps |
mallory@2383 | 36 cp $src/tyrian21/* $fs/usr/share/opentyrian |
mallory@2383 | 37 rm -rf $fs/usr/share/opentyrian/*exe |
mallory@2383 | 38 rm -rf $fs/usr/share/opentyrian/*doc |
mallory@2383 | 39 cat > $fs/usr/bin/tyrian <<EOF |
mallory@2383 | 40 #!/bin/sh |
mallory@2383 | 41 here=$(pwd) |
mallory@2383 | 42 cd /usr/share/opentyrian |
mallory@2383 | 43 ./tyrian |
mallory@2383 | 44 cd $here |
mallory@2383 | 45 EOF |
mallory@2383 | 46 chmod +x $fs/usr/bin/tyrian |
mallory@2383 | 47 } |
mallory@2383 | 48 |