wok-6.x view opentyrian-classic/receipt @ rev 3429

Remove all last deps on libiconv
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 13 13:32:50 2009 +0200 (2009-06-13)
parents e8024c01fc47
children da9a558411a8
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="subversion libsdl-dev libsdl-mixer-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
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 cd "$WOK/$PACKAGE"
19 svn checkout -$VERSION http://opentyrian.googlecode.com/svn/trunk/classic "$PACKAGE-$VERSION"
20 cd $src
21 make || return 1
22 wget http://camanis.net/tyrian/tyrian21.zip
23 unzip tyrian21.zip
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin
30 mkdir -p $fs/usr/share/applications
31 mkdir -p $fs/usr/share/pixmaps
32 mkdir -p $fs/usr/share/opentyrian
33 cp $src/tyrian $fs/usr/share/opentyrian
34 cp $src/opentyrian.desktop $fs/usr/share/applications
35 cp $src/tyrian.xpm $fs/usr/share/pixmaps
36 cp $src/tyrian21/* $fs/usr/share/opentyrian
37 rm -rf $fs/usr/share/opentyrian/*exe
38 rm -rf $fs/usr/share/opentyrian/*doc
39 cat > $fs/usr/bin/tyrian <<EOF
40 #!/bin/sh
41 here=$(pwd)
42 cd /usr/share/opentyrian
43 ./tyrian
44 cd $here
45 EOF
46 chmod +x $fs/usr/bin/tyrian
47 }