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