wok view warmux/receipt @ rev 25778
Up fdutils (5.6), lite (1.11), vlgothic-fonts (20230918)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 20 09:06:10 2024 +0000 (2 months ago) |
parents | d66160614dc4 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="warmux"
4 GITHASH="01f2d0071011bae5785d7a8d4502db4370c7de5a" # 20191201
5 VERSION="11.04.1"
6 CATEGORY="games"
7 SHORT_DESC="Warmux game"
8 MAINTAINER="slaxemulator@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/fluxer/warmux"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="https://github.com/fluxer/warmux/archive/$GITHASH.zip"
13 PROVIDE="wormux"
14 SUGGESTED="warmux-music"
16 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \
17 curl freetype libxml2 libxml++ gcc-lib-base gettext-base"
18 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev \
19 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev \
20 automake pkg-config"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
26 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./autogen.sh
34 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in
35 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
36 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
37 sed -i 's|SDLNet_Read32(buffer|SDLNet_Read32(const_cast<char*>(buffer)|' \
38 lib/warmux/action/action.cpp
39 mkdir -p $DESTDIR/usr/share/warmux
41 ./configure \
42 --bindir=/usr/games \
43 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
44 $CONFIGURE_ARGS &&
45 make &&
46 make -j1 install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/share
53 cp -a $install/usr/games $fs/usr
54 cp -a $install/usr/share/pixmaps $fs/usr/share
55 cp -a $install/usr/share/warmux $fs/usr/share
57 # Remove unecessary files
58 rm -rf $fs/usr/share/warmux/font
59 rm -rf $fs/usr/share/warmux/music
60 #rm -rf $fs/usr/share/warmux/sound
61 }