wok annotate tyrian/receipt @ rev 25554
Up fakeroot (1.31)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 12 20:31:24 2023 +0000 (19 months ago) |
parents | 6135577f4d08 |
children | 0262035dc1e7 |
rev | line source |
---|---|
gokhlayeh@8565 | 1 # SliTaz package receipt. |
gokhlayeh@8565 | 2 |
gokhlayeh@8565 | 3 PACKAGE="tyrian" |
gokhlayeh@8565 | 4 VERSION="21" |
gokhlayeh@8565 | 5 CATEGORY="non-free" |
gokhlayeh@8565 | 6 SHORT_DESC="Tyrian is a the DOS shoot-em-up;you need open-tyrian to run it." |
pascal@14277 | 7 MAINTAINER="mallory@sweetpeople.org" |
gokhlayeh@8565 | 8 BUILD_DEPENDS="wget" |
gokhlayeh@8565 | 9 TARBALL="$PACKAGE$VERSION.zip" |
pascal@24902 | 10 WEB_SITE="https://github.com/opentyrian/opentyrian" |
gokhlayeh@8565 | 11 WGET_URL="https://sites.google.com/a/camanis.net/opentyrian/tyrian/$TARBALL" |
gokhlayeh@8565 | 12 |
pascal@15600 | 13 LICENSE="other" |
pascal@15600 | 14 |
pascal@24902 | 15 # What is the latest version available today? |
pascal@24902 | 16 current_version() |
pascal@24902 | 17 { |
pascal@24902 | 18 wget -O - https://github.com/opentyrian/opentyrian/releases 2>/dev/null | \ |
pascal@24902 | 19 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24902 | 20 } |
pascal@24902 | 21 |
gokhlayeh@8565 | 22 # Rules to configure and make the package. |
gokhlayeh@8565 | 23 compile_rules() |
gokhlayeh@8565 | 24 { |
gokhlayeh@8565 | 25 : |
gokhlayeh@8565 | 26 } |
gokhlayeh@8565 | 27 |
gokhlayeh@8565 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@8565 | 29 genpkg_rules() |
gokhlayeh@8565 | 30 { |
gokhlayeh@8565 | 31 mkdir -p $fs/usr/games/opentyrian |
gokhlayeh@8565 | 32 cd $src |
gokhlayeh@8565 | 33 for file in *; do |
gokhlayeh@8565 | 34 [ "$file" = "${file%.exe}" ] || continue |
gokhlayeh@8565 | 35 [ "$file" = "${file%.doc}" ] || continue |
gokhlayeh@8565 | 36 cp $file $fs/usr/games/opentyrian |
gokhlayeh@8565 | 37 done |
gokhlayeh@8565 | 38 } |
gokhlayeh@8565 | 39 |