SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dosbox"

# SliTaz package receipt.

PACKAGE="dosbox"
VERSION="0.74.3"
CATEGORY="system-tools"
TAGS="emulator dos vm86 8086"
SHORT_DESC="DOS-emulator that uses the SDL-library."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.dosbox.com/"

TARBALL="$PACKAGE-${VERSION%.*}-${VERSION##*.}.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="alsa-lib libpng libsdl libsdl-net mesa xorg-libX11 zlib"
BUILD_DEPENDS="libsdl-dev libsdl-net-dev xorg-libX11-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/dosbox/files/dosbox/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/dosbox/||;s|/.*||;s|-|.|g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/define DOSBOX_DOS_INC_H/&\n#include <stddef.h>/' \
        include/dos_inc.h

    ./configure            \
        --prefix=/usr        \
        --mandir=/usr/share/man    \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/pixmaps
    mkdir -p $fs/usr/share/applications

    cp -a $install/usr/bin    $fs/usr
    cp $stuff/*.desktop $fs/usr/share/applications
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)