wok view opentyrian/receipt @ rev 24644

updated hiawatha (10.10 -> 11.1)
author Hans-G?nter Theisgen
date Thu Mar 10 09:34:32 2022 +0100 (2022-03-10)
parents 924febe49050
children
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/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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 make release
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin $fs/usr/share/applications \
34 $fs/usr/share/pixmaps $fs/usr/games/opentyrian
35 cp $src/opentyrian $fs/usr/games/opentyrian
36 cp $src/linux/opentyrian.desktop $fs/usr/share/applications
37 cp $src/linux/icons/tyrian-32.png $fs/usr/share/pixmaps/opentyrian.png
38 cat > $fs/usr/bin/opentyrian <<EOF
39 #!/bin/sh
40 here=$(pwd)
41 cd /usr/games/opentyrian
42 ./opentyrian
43 cd $here
44 EOF
45 chmod +x $fs/usr/bin/opentyrian
46 }