wok-next view opentyrian/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents a3c581bf52b8
children 0f2575775b2d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="opentyrian"
4 VERSION="r886"
5 CATEGORY="games"
6 SHORT_DESC="Port of the DOS shoot-em-up Tyrian"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://bitbucket.org/opentyrian/opentyrian/wiki/Home"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="mercurial|https://opentyrian.googlecode.com/hg/" # FIXME
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 }