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 '/latest/d;/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)