wok view warmux/receipt @ rev 20841

updated dokuwiki (2012-01-25 -> 20180422b)
author Hans-G?nter Theisgen
date Wed Feb 20 16:20:24 2019 +0100 (2019-02-20)
parents 2a21689b0af7
children 5ee9869f5c7b
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 mkdir -p $DESTDIR/usr/share/warmux
29 ./configure \
30 --bindir=/usr/games \
31 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
32 $CONFIGURE_ARGS &&
33 make &&
34 make -j1 install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $install/usr/games $fs/usr
42 cp -a $install/usr/share/pixmaps $fs/usr/share
43 cp -a $install/usr/share/warmux $fs/usr/share
45 # Remove unecessary files
46 rm -rf $fs/usr/share/warmux/font
47 rm -rf $fs/usr/share/warmux/music
48 #rm -rf $fs/usr/share/warmux/sound
49 }