wok annotate caprice32/receipt @ rev 25037

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