wok annotate prboom/receipt @ rev 24396
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 12:15:27 2022 +0000 (2022-02-08) |
parents | 5fcb050fa8cd |
children | 7dd01dedad38 |
rev | line source |
---|---|
mallory@2693 | 1 # SliTaz package receipt. |
mallory@2693 | 2 |
mallory@2693 | 3 PACKAGE="prboom" |
mallory@2693 | 4 VERSION="2.5.0" |
mallory@2693 | 5 CATEGORY="games" |
mallory@2693 | 6 SHORT_DESC="PrBoom is the culmination of years of work by various people and projects on the Doom source code." |
mallory@2693 | 7 MAINTAINER="mallory@sweetpeople.org" |
pascal@15002 | 8 LICENSE="GPL2" |
jozee@5019 | 9 SUGGESTED="nvidia" |
mallory@2693 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
mallory@2693 | 11 WEB_SITE="http://prboom.sourceforge.net/" |
mallory@2693 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
mallory@2693 | 13 |
pascal@13796 | 14 DEPENDS="libsdl libsdl-mixer libsdl-net libpng mesa libglu-mesa freedoom" |
pascal@18413 | 15 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mesa-dev libglu-mesa \ |
pascal@18413 | 16 libpng-dev" |
pascal@13796 | 17 |
pascal@24396 | 18 # What is the latest version available today? |
pascal@24396 | 19 current_version() |
pascal@24396 | 20 { |
pascal@24396 | 21 wget -O - https://sourceforge.net/projects/prboom/files/prboom%20stable/ 2>/dev/null | \ |
pascal@24396 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 23 sed '/scope="row/!d;s|.*/prboom%20stable/||;s|/.*||;q' |
pascal@24396 | 24 } |
pascal@24396 | 25 |
mallory@2693 | 26 # Rules to configure and make the package. |
mallory@2693 | 27 compile_rules() |
mallory@2693 | 28 { |
mallory@2693 | 29 ./configure \ |
mallory@2693 | 30 --prefix=/usr \ |
mallory@2693 | 31 --infodir=/usr/share/info \ |
mallory@2693 | 32 --mandir=/usr/share/man \ |
slaxemulator@9278 | 33 --disable-i386-asm \ |
mallory@2693 | 34 $CONFIGURE_ARGS && |
pascal@13796 | 35 make $MAKEFLAGS && make DESTDIR=$DESTDIR install |
mallory@2693 | 36 } |
mallory@2693 | 37 |
mallory@2693 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2693 | 39 genpkg_rules() |
mallory@2693 | 40 { |
mallory@2716 | 41 echo "Creating package tree" |
mallory@2716 | 42 mkdir -p $fs/usr/games \ |
mallory@2716 | 43 $fs/usr/share/games \ |
mallory@2716 | 44 $fs/usr/share/applications \ |
mallory@2716 | 45 $fs/usr/share/pixmaps |
mallory@2716 | 46 |
mallory@2716 | 47 echo "Copying package files" |
pascal@13796 | 48 cp -a $install/usr/games $fs/usr |
pascal@13796 | 49 cp -a $install/usr/share/games $fs/usr/share |
mallory@2693 | 50 } |