wok-current annotate warmux/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | 2b0142c9f248 |
children | e4cc6a0d37f0 |
rev | line source |
---|---|
slaxemulator@8993 | 1 # SliTaz package receipt. |
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" |
pascal@24465 | 9 WEB_SITE="https://www.warmux.org/" |
slaxemulator@8993 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@25439 | 11 WGET_URL="$WEB_SITE$TARBALL" |
slaxemulator@8993 | 12 PROVIDE="wormux" |
al@16885 | 13 SUGGESTED="warmux-music" |
slaxemulator@8993 | 14 |
slaxemulator@9843 | 15 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \ |
al@16885 | 16 curl freetype libxml2 libxml++ gcc-lib-base gettext-base" |
pascal@10611 | 17 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev \ |
pascal@10611 | 18 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev \ |
pascal@10611 | 19 pkg-config" |
slaxemulator@9843 | 20 |
pascal@24465 | 21 # What is the latest version available today? |
pascal@24465 | 22 current_version() |
pascal@24465 | 23 { |
pascal@24465 | 24 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24465 | 25 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24465 | 26 } |
pascal@24465 | 27 |
slaxemulator@8993 | 28 # Rules to configure and make the package. |
slaxemulator@8993 | 29 compile_rules() |
slaxemulator@8993 | 30 { |
al@16885 | 31 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in |
slaxemulator@8993 | 32 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp |
slaxemulator@8993 | 33 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile* |
pascal@21881 | 34 sed -i 's|SDLNet_Read32(buffer|SDLNet_Read32(const_cast<char*>(buffer)|' \ |
pascal@21881 | 35 lib/warmux/action/action.cpp |
slaxemulator@8993 | 36 mkdir -p $DESTDIR/usr/share/warmux |
al@16885 | 37 |
slaxemulator@8993 | 38 ./configure \ |
slaxemulator@8993 | 39 --bindir=/usr/games \ |
slaxemulator@10066 | 40 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \ |
slaxemulator@10066 | 41 $CONFIGURE_ARGS && |
slaxemulator@8993 | 42 make && |
slaxemulator@8993 | 43 make -j1 install |
slaxemulator@8993 | 44 } |
slaxemulator@8993 | 45 |
slaxemulator@8993 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8993 | 47 genpkg_rules() |
slaxemulator@8993 | 48 { |
slaxemulator@8993 | 49 mkdir -p $fs/usr/share |
pascal@15363 | 50 cp -a $install/usr/games $fs/usr |
pascal@15363 | 51 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@15363 | 52 cp -a $install/usr/share/warmux $fs/usr/share |
al@16885 | 53 |
slaxemulator@8993 | 54 # Remove unecessary files |
slaxemulator@8993 | 55 rm -rf $fs/usr/share/warmux/font |
slaxemulator@8993 | 56 rm -rf $fs/usr/share/warmux/music |
slaxemulator@8993 | 57 #rm -rf $fs/usr/share/warmux/sound |
slaxemulator@8993 | 58 } |