wok view caprice32/receipt @ rev 25632

Up gtklife (5.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 23 14:06:29 2023 +0000 (11 months ago)
parents 095836df71b7
children
line source
1 # SliTaz package receipt.
3 PACKAGE="caprice32"
4 VERSION="4.6.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="An emulator of the Amstrad CPC 8bit home computer range"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/ColinPitrat/caprice32/"
11 WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz"
12 TAGS="emulator amstrad"
14 DEPENDS="libsdl freetype zlib libpng gcc83-lib-base"
15 BUILD_DEPENDS="gcc83 libsdl-dev freetype-dev zlib-dev libpng-dev gcc83-lib-base"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;/latest/d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 grep -rl /usr/local $src | xargs sed -i 's|/usr/local|/usr|'
28 sed -i '/git/d;/GIT/d' makefile
29 make CC=gcc-83 CXX=g++-83 &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 }