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

Up tazinst (101)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 08 16:48:38 2020 +0000 (2020-08-08)
parents eeba7ab1dffe
children 924febe49050
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="https://github.com/opentyrian/opentyriane"
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 }