wok-next annotate warmux/receipt @ rev 20709

cdrdao: add patch.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 26 17:09:29 2018 +0300 (2018-05-26)
parents 731f74708293
children d5aab818505e
rev   line source
pascal@20324 1 # SliTaz package receipt v2.
slaxemulator@8993 2
slaxemulator@8993 3 PACKAGE="warmux"
slaxemulator@9843 4 VERSION="11.04.1"
slaxemulator@8993 5 CATEGORY="games"
al@16885 6 SHORT_DESC="Warmux game"
slaxemulator@8993 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15363 8 LICENSE="GPL2"
al@16885 9 WEB_SITE="http://www.wormux.org/"
slaxemulator@8993 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@8993 11 WGET_URL="http://download.gna.org/warmux/$TARBALL"
slaxemulator@8993 12
pascal@10611 13 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev \
al@20513 14 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev"
pascal@20324 15 SPLIT="warmux warmux-music"
slaxemulator@9843 16
slaxemulator@8993 17 # Rules to configure and make the package.
slaxemulator@8993 18 compile_rules()
slaxemulator@8993 19 {
al@16885 20 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in
slaxemulator@8993 21 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
slaxemulator@8993 22 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
slaxemulator@8993 23 mkdir -p $DESTDIR/usr/share/warmux
al@16885 24
slaxemulator@8993 25 ./configure \
slaxemulator@8993 26 --bindir=/usr/games \
slaxemulator@10066 27 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
slaxemulator@10066 28 $CONFIGURE_ARGS &&
slaxemulator@8993 29 make &&
slaxemulator@8993 30 make -j1 install
slaxemulator@8993 31 }
slaxemulator@8993 32
slaxemulator@8993 33 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@8993 34 genpkg_rules()
slaxemulator@8993 35 {
pascal@20324 36 case $PACKAGE in
pascal@20324 37 warmux)
pascal@20324 38 PROVIDE="wormux"
pascal@20324 39 SUGGESTED="warmux-music"
pascal@20324 40 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net \
pascal@20324 41 libsdl-ttf curl freetype libxml2 libxml++ gcc-lib-base \
pascal@20324 42 gettext-base"
pascal@20324 43 mkdir -p $fs/usr/share
pascal@20324 44 cp -a $install/usr/games $fs/usr
pascal@20324 45 cp -a $install/usr/share/pixmaps $fs/usr/share
pascal@20324 46 cp -a $install/usr/share/warmux $fs/usr/share
al@16885 47
pascal@20324 48 # Remove unecessary files
pascal@20324 49 rm -rf $fs/usr/share/warmux/font
pascal@20324 50 rm -rf $fs/usr/share/warmux/music
pascal@20324 51 #rm -rf $fs/usr/share/warmux/sound
pascal@20324 52 ;;
pascal@20324 53 warmux-music)
pascal@20324 54 CAT="games|game music (~35Mb)"
pascal@20324 55 DEPENDS="warmux"
pascal@20324 56 mkdir -p $fs/usr/share/warmux
pascal@20324 57 cp -a $install/usr/share/warmux/music $fs/usr/share/warmux
pascal@20324 58 ;;
pascal@20324 59 esac
slaxemulator@8993 60 }