wok annotate manaplus/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 241fb98cab1c
children 120dd6158093
rev   line source
admin@14599 1 # SliTaz package receipt.
pascal@15002 2
admin@14599 3 PACKAGE="manaplus"
Hans-G?nter@24880 4 VERSION="2.1.3.17"
admin@14599 5 CATEGORY="games"
Hans-G?nter@21418 6 SHORT_DESC="Extended client for Evol Online and The Mana World."
admin@14599 7 MAINTAINER="admin@trixarian.net"
pascal@15002 8 LICENSE="GPL2"
Hans-G?nter@21418 9 WEB_SITE="https://manaplus.org/"
Hans-G?nter@21418 10
pascal@14780 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@14780 12 WGET_URL="http://download.evolonline.org/manaplus/download/$VERSION/$TARBALL"
pascal@15002 13
Hans-G?nter@24880 14 SUGGESTED="manaplus-lang"
Hans-G?nter@24880 15 DEPENDS="curl libpng libsdl-gfx libsdl-image libsdl-mixer libsdl-net
Hans-G?nter@21418 16 libsdl-ttf libxml2 physfs ttf-dejavu zlib"
Hans-G?nter@24880 17 BUILD_DEPENDS="curl-dev enet libpng-dev libsdl-gfx-dev libsdl-image-dev
Hans-G?nter@24880 18 libsdl-mixer-dev libsdl-net-dev libsdl-ttf-dev libxml2-dev
Hans-G?nter@21418 19 physfs-dev zlib-dev"
admin@14599 20
pascal@24453 21 # What is the latest version available today?
pascal@24453 22 current_version()
pascal@24453 23 {
pascal@24453 24 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24453 25 sed '/Latest version/!d;s|.*version: ||;s|<.*||;q'
pascal@24453 26 }
pascal@24453 27
admin@14599 28 # Rules to configure and make the package.
admin@14599 29 compile_rules()
admin@14599 30 {
Hans-G?nter@21418 31 ./configure \
Hans-G?nter@21418 32 --prefix=/usr \
Hans-G?nter@21418 33 --without-opengl \
Hans-G?nter@21418 34 $CONFIGURE_ARGS &&
Hans-G?nter@24880 35 make &&
Hans-G?nter@24880 36 make install DESTDIR=$DESTDIR
admin@14599 37 }
admin@14599 38
admin@14599 39 # Rules to gen a SliTaz package suitable for Tazpkg.
admin@14599 40 genpkg_rules()
admin@14599 41 {
admin@14599 42 mkdir -p $fs/usr/share
Hans-G?nter@21418 43
Hans-G?nter@21418 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21418 45 cp -a $install/usr/share/applications $fs/usr/share/
Hans-G?nter@21418 46 cp -a $install/usr/share/manaplus $fs/usr/share/
Hans-G?nter@24880 47 # 2.1.3.17 not created
Hans-G?nter@24880 48 # cp -a $install/usr/share/pixmaps $fs/usr/share/
admin@14599 49 }