wok-current view warmux/receipt @ rev 24933

updated muparser and muparser-dev (2.2.6.1 -> 2.3.3)
author Hans-G?nter Theisgen
date Wed Apr 13 17:29:40 2022 +0100 (2022-04-13)
parents 05c8d8d9d934
children 2b0142c9f248
line source
1 # SliTaz package receipt.
3 PACKAGE="warmux"
4 VERSION="11.04.1"
5 CATEGORY="games"
6 SHORT_DESC="Warmux game"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.warmux.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://download.gna.org/warmux/$TARBALL"
12 PROVIDE="wormux"
13 SUGGESTED="warmux-music"
15 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \
16 curl freetype libxml2 libxml++ gcc-lib-base gettext-base"
17 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev \
18 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev \
19 pkg-config"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - $WEB_SITE 2>/dev/null | \
25 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in
32 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
33 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
34 sed -i 's|SDLNet_Read32(buffer|SDLNet_Read32(const_cast<char*>(buffer)|' \
35 lib/warmux/action/action.cpp
36 mkdir -p $DESTDIR/usr/share/warmux
38 ./configure \
39 --bindir=/usr/games \
40 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
41 $CONFIGURE_ARGS &&
42 make &&
43 make -j1 install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share
50 cp -a $install/usr/games $fs/usr
51 cp -a $install/usr/share/pixmaps $fs/usr/share
52 cp -a $install/usr/share/warmux $fs/usr/share
54 # Remove unecessary files
55 rm -rf $fs/usr/share/warmux/font
56 rm -rf $fs/usr/share/warmux/music
57 #rm -rf $fs/usr/share/warmux/sound
58 }