wok-next view opentyrian/receipt @ rev 20669

vde2: up / fix build
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 11 14:21:30 2018 +0300 (2018-05-11)
parents cfc6ddf8de74
children a3c581bf52b8
line source
1 # SliTaz package receipt v2.
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="mercurial|https://opentyrian.googlecode.com/hg/"
14 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
16 compile_rules() {
17 make release || return 1
19 mkdir -p \
20 $install/usr/bin $fs/usr/share/applications \
21 $install/usr/share/pixmaps \
22 $install/usr/games/opentyrian
23 cp $src/opentyrian $install/usr/games/opentyrian
24 cp $src/linux/opentyrian.desktop $install/usr/share/applications
25 cp $src/linux/icons/tyrian-32.png $install/usr/share/pixmaps/opentyrian.png
26 cat > $install/usr/bin/opentyrian <<EOF
27 #!/bin/sh
28 here=$(pwd)
29 cd /usr/games/opentyrian
30 ./opentyrian
31 cd $here
32 EOF
33 chmod +x $install/usr/bin/opentyrian
34 }
36 genpkg_rules() {
37 copy @std
38 DEPENDS="libsdl libsdl-mixer libsdl-net tyrian"
39 }