wok view opentyrian/receipt @ rev 18024

Up: cookutils, cookutils-daemon (again).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 03 19:46:03 2015 +0300 (2015-05-03)
parents 408c87fa22ca
children eeba7ab1dffe
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@sweetpeople.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://code.google.com/p/opentyrian/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="mercurial|https://opentyrian.googlecode.com/hg/"
13 DEPENDS="libsdl libsdl-mixer libsdl-net tyrian"
14 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 make release
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $fs/usr/share/applications \
27 $fs/usr/share/pixmaps $fs/usr/games/opentyrian
28 cp $src/opentyrian $fs/usr/games/opentyrian
29 cp $src/linux/opentyrian.desktop $fs/usr/share/applications
30 cp $src/linux/icons/tyrian-32.png $fs/usr/share/pixmaps/opentyrian.png
31 cat > $fs/usr/bin/opentyrian <<EOF
32 #!/bin/sh
33 here=$(pwd)
34 cd /usr/games/opentyrian
35 ./opentyrian
36 cd $here
37 EOF
38 chmod +x $fs/usr/bin/opentyrian
39 }