SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "zsnes"

# SliTaz package receipt.

PACKAGE="zsnes"
VERSION="1.51"
CATEGORY="games"
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL2"
SHORT_DESC="Super Nintendo emulator"
WEB_SITE="https://www.zsnes.com/"
TARBALL="$PACKAGE${VERSION//./}src.tar.bz2"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
TAGS="emulator nintendo snes"

DEPENDS="gcc-lib-base libsdl libpng ncurses mesa zlib"
BUILD_DEPENDS="$DEPENDS nasm libsdl-dev libpng-dev ncurses-dev mesa-dev \
automake autoconf zlib-dev patch"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/atest .ersion/!d;s|.*/b> *||;s|[^0-9\.].*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
  export LDFLAGS="$LDFLAGS -ltinfo"
  cd $src
  patch -p1 -i $stuff/zsnes.patch 
  cd $src/src
  sed -i 's|/usr/man/|/usr/share/man/|' Makefile*
  ./configure --prefix=/usr \
    --x-libraries=/usr/lib \
    --enable-release \
    force_arch=$ARCH \
    $CONFIGURE_ARGS &&
   make &&
   make -j 1 install
}
    
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $src/src/zsnes $fs/usr/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)