wok-current view opentyrian-classic/receipt @ rev 6958
opentyrian-classic: Remove . /etc/tazwok.conf
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Oct 26 12:56:43 2010 +0200 (2010-10-26) |
parents | c2b3198d2d91 |
children |
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 # Rules to configure and make the package.
15 compile_rules()
16 {
17 TARBALL=$SOURCES_REPOSITORY/$PACKAGE.tar.gz
18 if [ -f $TARBALL ]; then
19 tar xzf $TARBALL
20 else
21 hg clone https://opentyrian.googlecode.com/hg/ opentyrian
22 tar czf $TARBALL opentyrian
23 fi
24 cd $SOURCE
25 make release
26 [ -f $SOURCES_REPOSITORY/tyrian21.zip ] ||
27 wget http://camanis.net/tyrian/tyrian21.zip -P $SOURCES_REPOSITORY
28 unzip $SOURCES_REPOSITORY/tyrian21.zip
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 mkdir -p $fs/usr/share/applications
36 mkdir -p $fs/usr/share/pixmaps
37 mkdir -p $fs/usr/share/opentyrian
38 cp $SOURCE/tyrian $fs/usr/share/opentyrian
39 cp $SOURCE/opentyrian.desktop $fs/usr/share/applications
40 cp $SOURCE/tyrian.xpm $fs/usr/share/pixmaps
41 cp $SOURCE/tyrian21/* $fs/usr/share/opentyrian
42 rm -rf $fs/usr/share/opentyrian/*exe
43 rm -rf $fs/usr/share/opentyrian/*doc
44 cat > $fs/usr/bin/tyrian <<EOF
45 #!/bin/sh
46 here=$(pwd)
47 cd /usr/share/opentyrian
48 ./tyrian
49 cd $here
50 EOF
51 chmod +x $fs/usr/bin/tyrian
52 }