wok-6.x annotate chocolate-doom/receipt @ rev 25342
Down python-bcrypt: last version supporting python < 3.6
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 24 17:10:41 2022 +0000 (2022-07-24) |
parents | 5baa9d957a85 |
children | 7f7bd3c9775e |
rev | line source |
---|---|
pascal@3619 | 1 # SliTaz package receipt. |
pascal@3619 | 2 |
pascal@3619 | 3 PACKAGE="chocolate-doom" |
pascal@23879 | 4 VERSION="3.0.1" |
pascal@3619 | 5 CATEGORY="games" |
pascal@3619 | 6 SHORT_DESC="Doom source port as close as possible to vanilla Doom." |
pascal@3619 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
Hans-G?nter@22596 | 9 WEB_SITE="https://chocolate-doom.org/wiki/index.php/Chocolate_Doom" |
Hans-G?nter@22596 | 10 |
pascal@3619 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22596 | 12 WGET_URL="https://chocolate-doom.org/downloads/$VERSION/$TARBALL" |
pascal@15579 | 13 |
Hans-G?nter@22596 | 14 DEPENDS="libsamplerate libsdl2 libsdl2-mixer libsdl2-net" |
Hans-G?nter@22596 | 15 BUILD_DEPENDS="libsdl2-dev libsdl2-mixer-dev libsdl2-net-dev" |
pascal@3619 | 16 |
pascal@24436 | 17 # What is the latest version available today? |
pascal@24436 | 18 current_version() |
pascal@24436 | 19 { |
pascal@24436 | 20 wget -O - https://github.com/chocolate-doom/chocolate-doom/tags 2>/dev/null | \ |
pascal@24436 | 21 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' |
pascal@24436 | 22 } |
pascal@24436 | 23 |
pascal@3619 | 24 # Rules to configure and make the package. |
pascal@3619 | 25 compile_rules() |
pascal@3619 | 26 { |
pascal@17670 | 27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm" |
Hans-G?nter@22596 | 28 |
Hans-G?nter@22596 | 29 ./configure \ |
Hans-G?nter@22596 | 30 --prefix=/usr \ |
Hans-G?nter@22596 | 31 --infodir=/usr/share/info \ |
Hans-G?nter@22596 | 32 --mandir=/usr/share/man \ |
Hans-G?nter@22596 | 33 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 34 make $MAKEFLAGS |
al@19315 | 35 |
al@19315 | 36 cook_pick_manpages man/*.5 man/*.6 |
pascal@3619 | 37 } |
pascal@3619 | 38 |
pascal@3619 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3619 | 40 genpkg_rules() |
pascal@3619 | 41 { |
Hans-G?nter@22596 | 42 mkdir -p $fs/usr/bin |
Hans-G?nter@22596 | 43 mkdir -p $fs/usr/share/games/doom |
Hans-G?nter@22596 | 44 |
Hans-G?nter@22596 | 45 cp $src/src/chocolate-doom $fs/usr/bin |
pascal@3619 | 46 } |