wok annotate xbattle/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents b9659e3c2111
children
rev   line source
pascal@13736 1 # SliTaz package receipt.
pascal@13736 2
pascal@13736 3 PACKAGE="xbattle"
pascal@13736 4 VERSION="5.4.1"
pascal@13736 5 CATEGORY="games"
pascal@13736 6 SHORT_DESC="Concurrent multi-player battle strategy game for X11."
pascal@13736 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15604 8 LICENSE="other"
pascal@21252 9 WEB_SITE="https://web.archive.org/web/20011128105604/http://cns-web.bu.edu/pub/xpip/html/xbattle.html"
pascal@13736 10 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
pascal@25024 11 WGET_URL="http://old-releases.ubuntu.com/ubuntu/pool/universe/x/$PACKAGE/$TARBALL"
pascal@13740 12 SUGGESTED="xorg-xhost"
pascal@13736 13
pascal@13736 14 DEPENDS="xorg"
pascal@13736 15 BUILD_DEPENDS="xorg-imake xorg-dev"
pascal@13736 16
pascal@24545 17 # What is the latest version available today?
pascal@24545 18 current_version()
pascal@24545 19 {
pascal@24545 20 wget -O - https://raw.githubusercontent.com/mikemayer67/xbattle/master/README 2>/dev/null | \
pascal@24545 21 sed '/^XBATTLE/!d;s|XBATTLE ||;q'
pascal@24545 22 }
pascal@24545 23
pascal@13736 24 # Rules to configure and make the package.
pascal@13736 25 compile_rules()
pascal@13736 26 {
pascal@13736 27 cd $src
pascal@13738 28 patch -p0 < $stuff/pseudo_color.u
pascal@13736 29 xmkmf
pascal@13736 30 make && make DESTDIR=$DESTDIR install
pascal@13736 31 }
pascal@13736 32
pascal@13736 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13736 34 genpkg_rules()
pascal@13736 35 {
pascal@13736 36 cp -a $install/usr $fs
pascal@13738 37 cp -a $stuff/*/ $fs
pascal@13736 38 }