wok-6.x view warmux/receipt @ rev 23585

updated python-xdg (0.19 -> 0.26)
author Hans-G?nter Theisgen
date Tue Apr 07 14:15:45 2020 +0100 (2020-04-07)
parents e4fd343fd7b8
children 05c8d8d9d934
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="http://www.wormux.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 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in
25 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
26 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
27 sed -i 's|SDLNet_Read32(buffer|SDLNet_Read32(const_cast<char*>(buffer)|' \
28 lib/warmux/action/action.cpp
29 mkdir -p $DESTDIR/usr/share/warmux
31 ./configure \
32 --bindir=/usr/games \
33 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
34 $CONFIGURE_ARGS &&
35 make &&
36 make -j1 install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
43 cp -a $install/usr/games $fs/usr
44 cp -a $install/usr/share/pixmaps $fs/usr/share
45 cp -a $install/usr/share/warmux $fs/usr/share
47 # Remove unecessary files
48 rm -rf $fs/usr/share/warmux/font
49 rm -rf $fs/usr/share/warmux/music
50 #rm -rf $fs/usr/share/warmux/sound
51 }