wok-6.x view caprice32/receipt @ rev 24326

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 27 12:16:00 2022 +0000 (2022-01-27)
parents 6768666226be
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 '/latest/d;/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;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 }