wok annotate opentyrian/receipt @ rev 24907

updated minised (1.15 -> 1.16)
author Hans-G?nter Theisgen
date Sat Apr 09 14:44:11 2022 +0100 (2022-04-09)
parents 924febe49050
children
rev   line source
gokhlayeh@8566 1 # SliTaz package receipt.
gokhlayeh@8566 2
gokhlayeh@8566 3 PACKAGE="opentyrian"
gokhlayeh@8566 4 VERSION="r886"
gokhlayeh@8566 5 CATEGORY="games"
gokhlayeh@8566 6 SHORT_DESC="OpenTyrian is a port of the DOS shoot-em-up Tyrian"
pascal@14277 7 MAINTAINER="mallory@sweetpeople.org"
pascal@15001 8 LICENSE="GPL2"
pascal@23910 9 WEB_SITE="https://github.com/opentyrian/opentyrian"
pascal@15661 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15001 11 WGET_URL="mercurial|https://opentyrian.googlecode.com/hg/"
pascal@15001 12
gokhlayeh@8566 13 DEPENDS="libsdl libsdl-mixer libsdl-net tyrian"
gokhlayeh@8566 14 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
gokhlayeh@8566 15
pascal@24326 16 # What is the latest version available today?
pascal@24326 17 current_version()
pascal@24326 18 {
pascal@24326 19 wget -O - $WEB_SITE/tags 2>/dev/null | \
pascal@24326 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24326 21 }
pascal@24326 22
gokhlayeh@8566 23 # Rules to configure and make the package.
gokhlayeh@8566 24 compile_rules()
gokhlayeh@8566 25 {
gokhlayeh@8566 26 cd $src
gokhlayeh@8566 27 make release
gokhlayeh@8566 28 }
gokhlayeh@8566 29
gokhlayeh@8566 30 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@8566 31 genpkg_rules()
gokhlayeh@8566 32 {
gokhlayeh@8566 33 mkdir -p $fs/usr/bin $fs/usr/share/applications \
gokhlayeh@8566 34 $fs/usr/share/pixmaps $fs/usr/games/opentyrian
gokhlayeh@8566 35 cp $src/opentyrian $fs/usr/games/opentyrian
gokhlayeh@8566 36 cp $src/linux/opentyrian.desktop $fs/usr/share/applications
gokhlayeh@8566 37 cp $src/linux/icons/tyrian-32.png $fs/usr/share/pixmaps/opentyrian.png
gokhlayeh@8566 38 cat > $fs/usr/bin/opentyrian <<EOF
gokhlayeh@8566 39 #!/bin/sh
gokhlayeh@8566 40 here=$(pwd)
gokhlayeh@8566 41 cd /usr/games/opentyrian
gokhlayeh@8566 42 ./opentyrian
gokhlayeh@8566 43 cd $here
gokhlayeh@8566 44 EOF
gokhlayeh@8566 45 chmod +x $fs/usr/bin/opentyrian
gokhlayeh@8566 46 }
gokhlayeh@8566 47