SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "caprice32"

# SliTaz package receipt.

PACKAGE="caprice32"
VERSION="4.6.0"
CATEGORY="system-tools"
SHORT_DESC="An emulator of the Amstrad CPC 8bit home computer range"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="LGPL2.1"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/ColinPitrat/caprice32/"
WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz"
TAGS="emulator amstrad"

DEPENDS="libsdl freetype zlib libpng gcc83-lib-base"
BUILD_DEPENDS="gcc83 libsdl-dev freetype-dev zlib-dev libpng-dev gcc83-lib-base"

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

# Rules to configure and make the package.
compile_rules()
{
    grep -rl /usr/local $src | xargs sed -i 's|/usr/local|/usr|'
    sed -i '/git/d;/GIT/d' makefile
    make CC=gcc-83 CXX=g++-83 &&
    make DESTDIR=$DESTDIR install
}

# 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)