wok rev 2383
Add: OpenTyrian - Classic
author | Mallory MOLLO <mallory@skyrock.com> |
---|---|
date | Mon Mar 09 20:19:06 2009 +0100 (2009-03-09) |
parents | 9a58fb34a5ac |
children | f75355f3437e |
files | opentyrian-classic/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/opentyrian-classic/receipt Mon Mar 09 20:19:06 2009 +0100 1.3 @@ -0,0 +1,48 @@ 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" 1.12 +BUILD_DEPENDS="subversion libSDL-dev libsdl-mixer-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://code.google.com/p/opentyrian/" 1.15 +WGET_URL="" 1.16 + 1.17 +. /etc/tazwok.conf 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd "$WOK/$PACKAGE" 1.22 + svn checkout -$VERSION http://opentyrian.googlecode.com/svn/trunk/classic "$PACKAGE-$VERSION" 1.23 + cd $src 1.24 + make 1.25 + wget http://camanis.net/tyrian/tyrian21.zip 1.26 + unzip tyrian21.zip 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/usr/bin 1.33 + mkdir -p $fs/usr/share/applications 1.34 + mkdir -p $fs/usr/share/pixmaps 1.35 + mkdir -p $fs/usr/share/opentyrian 1.36 + cp $src/tyrian $fs/usr/share/opentyrian 1.37 + cp $src/opentyrian.desktop $fs/usr/share/applications 1.38 + cp $src/tyrian.xpm $fs/usr/share/pixmaps 1.39 + cp $src/tyrian21/* $fs/usr/share/opentyrian 1.40 + rm -rf $fs/usr/share/opentyrian/*exe 1.41 + rm -rf $fs/usr/share/opentyrian/*doc 1.42 + cat > $fs/usr/bin/tyrian <<EOF 1.43 +#!/bin/sh 1.44 +here=$(pwd) 1.45 +cd /usr/share/opentyrian 1.46 +./tyrian 1.47 +cd $here 1.48 +EOF 1.49 + chmod +x $fs/usr/bin/tyrian 1.50 +} 1.51 +