wok-current view assaultcube/receipt @ rev 25642

Bump linux to 4.19.305, add linux-pae-ipv6
author Stanislas Leduc <shann@slitaz.org>
date Wed Jan 17 12:05:22 2024 +0000 (11 months ago)
parents a78610b2eb47
children
line source
1 # SliTaz package receipt.
3 PACKAGE="assaultcube"
4 VERSION="1.1.0.4"
5 CATEGORY="games"
6 SHORT_DESC="A realistic team oriented multiplayer FPS based on the cube engine."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="zlib/libpng"
9 SOURCE="AssaultCube"
10 TARBALL="${SOURCE}_v${VERSION}_source.tar.bz2"
11 SOURCE="AssaultCube-Source"
12 WEB_SITE="https://assault.cubers.net/"
13 WGET_URL="$SF_MIRROR/actiongame/$TARBALL"
15 DEPENDS="openal libsdl-image libsdl-mixer mesa libglu-mesa assaultcube-data"
16 BUILD_DEPENDS="openal-dev libsdl-image-dev libsdl-mixer-dev mesa-dev \
17 libglu-mesa-dev file"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/assaultcube/AC/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src/source/src
30 sed -i 's/lvorbisfile/& -lX11/' Makefile
31 make
32 mkdir -p $DESTDIR/usr/bin
33 cp -a ac_client $DESTDIR/usr/bin
34 cp -a ac_server $DESTDIR/usr/bin
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin
42 cp -a $install/usr/bin/ac_client $fs/usr/bin
43 cp -a $install/usr/bin/ac_server $fs/usr/bin
44 cp -a $stuff/assaultcube $fs/usr/bin
45 cp -a $stuff/assaultcube-server $fs/usr/bin
46 chmod +x $fs/usr/bin/assaultcube
47 chmod +x $fs/usr/bin/assaultcube-server
48 }