SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mana"

# SliTaz package receipt.

PACKAGE="mana"
VERSION="1.0.0-beta"
CATEGORY="games"
SHORT_DESC="A fully free and open source MMORPG game with the looks of old-fashioned 2D RPG"
MAINTAINER="devl547@gmail.com"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://themanaworld.org/"
WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"

BUILD_DEPENDS="physfs-dev libxml2-dev libsdl-mixer-dev libsdl-image-dev \
libsdl-net-dev libsdl-ttf-dev libsdl-ttf curl-dev zlib-dev libpng-dev guichan-dev \
libsdl-gfx-dev enet"
DEPENDS="ttf-dejavu physfs libxml2 libsdl-mixer libsdl-image libsdl-net \
libsdl-ttf curl zlib libpng guichan libsdl-gfx"

# What is the latest version available today?
current_version()
{
    wget -O - https://manaplus.org/ 2>/dev/null | \
    sed '/Latest version/!d;s|.*version: ||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|\(enet_host_c.*\))|\1,0)|' src/net/manaserv/*.cpp
    ./configure --prefix=/usr --without-opengl $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/applications $fs/usr/share/
    cp -a $install/usr/share/mana $fs/usr/share/
    cp -a $install/usr/share/pixmaps $fs/usr/share/
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)