wok-current annotate warmux/receipt @ rev 25726
Fix xorg-server dep, add libffado, ffado-tools
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Nov 05 13:39:06 2024 +0000 (2 months ago) |
parents | 86d79cfc8e5e |
children |
rev | line source |
---|---|
slaxemulator@8993 | 1 # SliTaz package receipt. |
slaxemulator@8993 | 2 |
slaxemulator@8993 | 3 PACKAGE="warmux" |
pascal@25564 | 4 GITHASH="01f2d0071011bae5785d7a8d4502db4370c7de5a" # 20191201 |
slaxemulator@9843 | 5 VERSION="11.04.1" |
slaxemulator@8993 | 6 CATEGORY="games" |
al@16885 | 7 SHORT_DESC="Warmux game" |
slaxemulator@8993 | 8 MAINTAINER="slaxemulator@gmail.com" |
pascal@15363 | 9 LICENSE="GPL2" |
pascal@25564 | 10 WEB_SITE="https://github.com/fluxer/warmux" |
pascal@25564 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@25564 | 12 WGET_URL="https://github.com/fluxer/warmux/archive/$GITHASH.zip" |
slaxemulator@8993 | 13 PROVIDE="wormux" |
al@16885 | 14 SUGGESTED="warmux-music" |
slaxemulator@8993 | 15 |
slaxemulator@9843 | 16 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \ |
al@16885 | 17 curl freetype libxml2 libxml++ gcc-lib-base gettext-base" |
pascal@10611 | 18 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev \ |
pascal@10611 | 19 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev \ |
pascal@25564 | 20 automake pkg-config" |
slaxemulator@9843 | 21 |
pascal@24465 | 22 # What is the latest version available today? |
pascal@24465 | 23 current_version() |
pascal@24465 | 24 { |
pascal@25564 | 25 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@25564 | 26 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d |
pascal@24465 | 27 } |
pascal@24465 | 28 |
slaxemulator@8993 | 29 # Rules to configure and make the package. |
slaxemulator@8993 | 30 compile_rules() |
slaxemulator@8993 | 31 { |
pascal@25564 | 32 ./autogen.sh |
pascal@25564 | 33 |
al@16885 | 34 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in |
slaxemulator@8993 | 35 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp |
slaxemulator@8993 | 36 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile* |
pascal@21881 | 37 sed -i 's|SDLNet_Read32(buffer|SDLNet_Read32(const_cast<char*>(buffer)|' \ |
pascal@21881 | 38 lib/warmux/action/action.cpp |
slaxemulator@8993 | 39 mkdir -p $DESTDIR/usr/share/warmux |
al@16885 | 40 |
slaxemulator@8993 | 41 ./configure \ |
slaxemulator@8993 | 42 --bindir=/usr/games \ |
slaxemulator@10066 | 43 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \ |
slaxemulator@10066 | 44 $CONFIGURE_ARGS && |
slaxemulator@8993 | 45 make && |
slaxemulator@8993 | 46 make -j1 install |
slaxemulator@8993 | 47 } |
slaxemulator@8993 | 48 |
slaxemulator@8993 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8993 | 50 genpkg_rules() |
slaxemulator@8993 | 51 { |
slaxemulator@8993 | 52 mkdir -p $fs/usr/share |
pascal@15363 | 53 cp -a $install/usr/games $fs/usr |
pascal@15363 | 54 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@15363 | 55 cp -a $install/usr/share/warmux $fs/usr/share |
al@16885 | 56 |
slaxemulator@8993 | 57 # Remove unecessary files |
slaxemulator@8993 | 58 rm -rf $fs/usr/share/warmux/font |
slaxemulator@8993 | 59 rm -rf $fs/usr/share/warmux/music |
slaxemulator@8993 | 60 #rm -rf $fs/usr/share/warmux/sound |
slaxemulator@8993 | 61 } |