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

dialog: --with-ncursesw for UTF-8 support
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 07 18:42:38 2010 +0100 (2010-02-07)
parents 2c679ce49f4c
children aebcbcedcc6b
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 hg clone https://opentyrian.googlecode.com/hg/ opentyrian
19 cd $SOURCE
20 make release
21 wget http://camanis.net/tyrian/tyrian21.zip
22 unzip tyrian21.zip
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin
29 mkdir -p $fs/usr/share/applications
30 mkdir -p $fs/usr/share/pixmaps
31 mkdir -p $fs/usr/share/opentyrian
32 cp $SOURCE/tyrian $fs/usr/share/opentyrian
33 cp $SOURCE/opentyrian.desktop $fs/usr/share/applications
34 cp $SOURCE/tyrian.xpm $fs/usr/share/pixmaps
35 cp $SOURCE/tyrian21/* $fs/usr/share/opentyrian
36 rm -rf $fs/usr/share/opentyrian/*exe
37 rm -rf $fs/usr/share/opentyrian/*doc
38 cat > $fs/usr/bin/tyrian <<EOF
39 #!/bin/sh
40 here=$(pwd)
41 cd /usr/share/opentyrian
42 ./tyrian
43 cd $here
44 EOF
45 chmod +x $fs/usr/bin/tyrian
46 }