wok-current view opentyrian-classic/receipt @ rev 7409
Add libsdl-pango. Needed for frozen-bubble.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Nov 27 19:11:15 2010 +0000 (2010-11-27) |
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 }