wok-next view warmux/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d43bf7aae921
children 0f2575775b2d
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="devel@slitaz.org"
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="$PACKAGE-music"
17 compile_rules() {
18 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in
19 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
20 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
21 mkdir -p $install/usr/share/warmux
23 ./configure \
24 --bindir=/usr/games \
25 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
26 $CONFIGURE_ARGS &&
27 make &&
28 make -j1 install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 warmux)
34 PROVIDE="wormux"
35 SUGGESTED="warmux-music"
36 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net \
37 libsdl-ttf curl freetype libxml2 libxml++ gcc-lib-base \
38 gettext-base"
39 mkdir -p $fs/usr/share
40 cp -a $install/usr/games $fs/usr
41 cp -a $install/usr/share/pixmaps $fs/usr/share
42 cp -a $install/usr/share/warmux $fs/usr/share
44 # Remove unecessary files
45 rm -rf $fs/usr/share/warmux/font
46 rm -rf $fs/usr/share/warmux/music
47 #rm -rf $fs/usr/share/warmux/sound
48 ;;
49 *-music)
50 CAT="games|game music (~35Mb)"
51 DEPENDS="warmux"
52 mkdir -p $fs/usr/share/warmux
53 cp -a $install/usr/share/warmux/music $fs/usr/share/warmux
54 ;;
55 esac
56 }