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

updated linuxdcpp (1.0.3 -> 1.1.0)
author Hans-G?nter Theisgen
date Tue Mar 29 10:13:07 2022 +0100 (2022-03-29)
parents 5baa9d957a85
children 7f7bd3c9775e
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://chocolate-doom.org/wiki/index.php/Chocolate_Doom"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://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 }