SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "hatari"

# SliTaz package receipt.

PACKAGE="hatari"
VERSION="2.3.1"
CATEGORY="misc"
SHORT_DESC="An Atari ST/STE/TT/Falcon emulator."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/hatari/hatari"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/hatari/hatari/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="libdb libpng libsdl2 portaudio py3k readline zlib"
BUILD_DEPENDS="cmake libpng-dev libsdl2-dev portaudio-dev py3k-dev
    readline-dev udev-dev xorg-dev zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -ltinfo"

    ./configure --prefix=/usr &&
    make &&

    sed -i "s|\t/usr|\t$DESTDIR/usr|" share/cmake_install.cmake
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/*    $fs
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)