wok-current view chocolate-doom/receipt @ rev 25504

Update some web_site / wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 05 09:28:51 2023 +0000 (23 months ago)
parents 2a0479881723
children c3a6f662a1c1
line source
1 # SliTaz package receipt.
3 PACKAGE="chocolate-doom"
4 VERSION="3.0.1"
5 CATEGORY="games"
6 SHORT_DESC="Doom source port as close as possible to vanilla Doom."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://wwww.chocolate-doom.org/downloads/$VERSION/$TARBALL"
14 DEPENDS="libsamplerate libsdl2 libsdl2-mixer libsdl2-net"
15 BUILD_DEPENDS="libsdl2-dev libsdl2-mixer-dev libsdl2-net-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/chocolate-doom/chocolate-doom/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make $MAKEFLAGS
36 cook_pick_manpages man/*.5 man/*.6
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
43 mkdir -p $fs/usr/share/games/doom
45 cp $src/src/chocolate-doom $fs/usr/bin
46 }