wok-6.x view opentyrian/receipt @ rev 12179

Up: slitaz-configs (4.8.3) - Only apps in Applications menu and logout button on top right
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 24 16:15:55 2012 +0100 (2012-03-24)
parents 7e8df9be141c
children 11579844d239
line source
1 # SliTaz package receipt.
3 PACKAGE="opentyrian"
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 tyrian"
9 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
10 WEB_SITE="http://code.google.com/p/opentyrian/"
11 WGET_URL="mercurial|https://opentyrian.googlecode.com/hg/"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 make release
18 }
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr/bin $fs/usr/share/applications \
24 $fs/usr/share/pixmaps $fs/usr/games/opentyrian
25 cp $src/opentyrian $fs/usr/games/opentyrian
26 cp $src/linux/opentyrian.desktop $fs/usr/share/applications
27 cp $src/linux/icons/tyrian-32.png $fs/usr/share/pixmaps/opentyrian.png
28 cat > $fs/usr/bin/opentyrian <<EOF
29 #!/bin/sh
30 here=$(pwd)
31 cd /usr/games/opentyrian
32 ./opentyrian
33 cd $here
34 EOF
35 chmod +x $fs/usr/bin/opentyrian
36 }