wok annotate bzflag/receipt @ rev 25808
created recipe for xmenu
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 19 16:09:37 2024 +0100 (5 days ago) |
parents | 5f6c5106b1f5 |
children |
rev | line source |
---|---|
slaxemulator@7693 | 1 # SliTaz package receipt. |
slaxemulator@7693 | 2 |
slaxemulator@7693 | 3 PACKAGE="bzflag" |
Hans-G?nter@22574 | 4 VERSION="2.4.18" |
slaxemulator@7693 | 5 CATEGORY="games" |
slaxemulator@7693 | 6 SHORT_DESC="A multiplayer 3D tank battle game." |
slaxemulator@7693 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@22574 | 9 WEB_SITE="https://bzflag.org" |
Hans-G?nter@22574 | 10 |
slaxemulator@7693 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@7693 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7693 | 13 |
Hans-G?nter@22574 | 14 DEPENDS="c-ares curl gcc83-lib-base glew libsdl mesa" |
Hans-G?nter@22574 | 15 BUILD_DEPENDS="c-ares-dev curl-dev gcc83 glew-dev libsdl-dev |
Hans-G?nter@22574 | 16 mesa-dev util-linux-uuid-dev" |
pascal@14996 | 17 |
pascal@24340 | 18 # What is the latest version available today? |
pascal@24340 | 19 current_version() |
pascal@24340 | 20 { |
pascal@24340 | 21 wget -O - https://sourceforge.net/projects/bzflag/files/bzflag%20source/ 2>/dev/null | \ |
pascal@25605 | 22 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 23 sed '/scope="row/!d;s|.*/bzflag-||;s|.tar.*||;q' |
pascal@24340 | 24 } |
pascal@24340 | 25 |
slaxemulator@7693 | 26 # Rules to configure and make the package. |
slaxemulator@7693 | 27 compile_rules() |
slaxemulator@7693 | 28 { |
Hans-G?nter@22574 | 29 sed -i 's|uname -m|echo i486|' \ |
Hans-G?nter@22574 | 30 package/Makefile* |
Hans-G?nter@22574 | 31 # src/other/glew/config/Makefile.linux |
Hans-G?nter@22574 | 32 |
pascal@19771 | 33 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ltinfo" |
Hans-G?nter@22574 | 34 |
Hans-G?nter@22574 | 35 ./configure \ |
Hans-G?nter@22574 | 36 CC=gcc-83 \ |
Hans-G?nter@22574 | 37 CXX=g++-83 \ |
slaxemulator@7693 | 38 $CONFIGURE_ARGS && |
Hans-G?nter@22574 | 39 make && |
Hans-G?nter@22574 | 40 make DESTDIR=$DESTDIR install |
slaxemulator@7693 | 41 } |
slaxemulator@7693 | 42 |
slaxemulator@7693 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7693 | 44 genpkg_rules() |
slaxemulator@7693 | 45 { |
slaxemulator@7693 | 46 mkdir -p $fs/usr/share |
Hans-G?nter@22574 | 47 |
Hans-G?nter@22574 | 48 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22574 | 49 cp -a $install/usr/share/bzflag $fs/usr/share |
slaxemulator@7693 | 50 } |