wok-next view warmux/receipt @ rev 20976

Follow recent changes in the Python renames
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 25 17:35:51 2018 +0300 (2018-09-25)
parents 731f74708293
children d5aab818505e
line source
1 # SliTaz package receipt v2.
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"
13 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev \
14 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev"
15 SPLIT="warmux warmux-music"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in
21 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
22 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
23 mkdir -p $DESTDIR/usr/share/warmux
25 ./configure \
26 --bindir=/usr/games \
27 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
28 $CONFIGURE_ARGS &&
29 make &&
30 make -j1 install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 case $PACKAGE in
37 warmux)
38 PROVIDE="wormux"
39 SUGGESTED="warmux-music"
40 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net \
41 libsdl-ttf curl freetype libxml2 libxml++ gcc-lib-base \
42 gettext-base"
43 mkdir -p $fs/usr/share
44 cp -a $install/usr/games $fs/usr
45 cp -a $install/usr/share/pixmaps $fs/usr/share
46 cp -a $install/usr/share/warmux $fs/usr/share
48 # Remove unecessary files
49 rm -rf $fs/usr/share/warmux/font
50 rm -rf $fs/usr/share/warmux/music
51 #rm -rf $fs/usr/share/warmux/sound
52 ;;
53 warmux-music)
54 CAT="games|game music (~35Mb)"
55 DEPENDS="warmux"
56 mkdir -p $fs/usr/share/warmux
57 cp -a $install/usr/share/warmux/music $fs/usr/share/warmux
58 ;;
59 esac
60 }