wok-4.x view opentyrian-classic/receipt @ rev 6264

Up: hicolor-icon-theme to 0.12.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Sep 14 14:24:15 2010 +0000 (2010-09-14)
parents aebcbcedcc6b
children fbc45df6d18e
line source
1 # SliTaz package receipt.
3 PACKAGE="opentyrian-classic"
4 VERSION="r886"
5 CATEGORY="games"
6 SHORT_DESC="OpenTyrian is a port of the DOS shoot-em-up Tyrian"
7 MAINTAINER="mallory@skyrock.com"
8 DEPENDS="libsdl libsdl-mixer libsdl-net"
9 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
10 SOURCE="opentyrian"
11 WEB_SITE="http://code.google.com/p/opentyrian/"
12 WGET_URL=""
14 . /etc/tazwok.conf
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 TARBALL=$SOURCES_REPOSITORY/$PACKAGE.tar.gz
19 if [ -f $TARBALL ]; then
20 tar xzf $TARBALL
21 else
22 hg clone https://opentyrian.googlecode.com/hg/ opentyrian
23 tar czf $TARBALL opentyrian
24 fi
25 cd $SOURCE
26 make release
27 [ -f $SOURCES_REPOSITORY/tyrian21.zip ] ||
28 wget http://camanis.net/tyrian/tyrian21.zip -P $SOURCES_REPOSITORY
29 unzip $SOURCES_REPOSITORY/tyrian21.zip
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 mkdir -p $fs/usr/share/applications
37 mkdir -p $fs/usr/share/pixmaps
38 mkdir -p $fs/usr/share/opentyrian
39 cp $SOURCE/tyrian $fs/usr/share/opentyrian
40 cp $SOURCE/opentyrian.desktop $fs/usr/share/applications
41 cp $SOURCE/tyrian.xpm $fs/usr/share/pixmaps
42 cp $SOURCE/tyrian21/* $fs/usr/share/opentyrian
43 rm -rf $fs/usr/share/opentyrian/*exe
44 rm -rf $fs/usr/share/opentyrian/*doc
45 cat > $fs/usr/bin/tyrian <<EOF
46 #!/bin/sh
47 here=$(pwd)
48 cd /usr/share/opentyrian
49 ./tyrian
50 cd $here
51 EOF
52 chmod +x $fs/usr/bin/tyrian
53 }