wok annotate sz81/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (22 months ago)
parents e919c5a2742d
children 29df00e1e19d
rev   line source
pascal@16560 1 # SliTaz package receipt.
pascal@16560 2
pascal@16560 3 PACKAGE="sz81"
pascal@16560 4 VERSION="2.1.7"
pascal@16560 5 CATEGORY="system-tools"
pascal@16560 6 SHORT_DESC="zx81 emulator/virtual machine.."
pascal@16560 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16560 8 LICENSE="GPL2"
pascal@25460 9 WEB_SITE="https://sz81.sourceforge.net/"
pascal@16560 10 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
pascal@16560 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@16560 12 TAGS="emulator zx81"
pascal@16560 13
pascal@16560 14 DEPENDS="libsdl"
pascal@16560 15 BUILD_DEPENDS="libsdl-dev"
pascal@16560 16
pascal@24348 17 # What is the latest version available today?
pascal@24348 18 current_version()
pascal@24348 19 {
pascal@24348 20 wget -O - https://sourceforge.net/projects/sz81/files/sz81/ 2>/dev/null | \
pascal@24348 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 22 sed '/scope="row/!d;s|.*/sz81/||;s|/.*||;q'
pascal@24348 23 }
pascal@24348 24
pascal@16560 25 # Rules to configure and make the package.
pascal@16560 26 compile_rules()
pascal@16560 27 {
pascal@16560 28 make clean &&
pascal@16560 29 make &&
pascal@16560 30 make PREFIX=$DESTDIR/usr BINDIR=$DESTDIR/usr/bin \
pascal@16560 31 DOCDIR=$DESTDIR/usr/share/doc \
pascal@16560 32 PACKAGE_DATA_DIR=$DESTDIR/usr/share/sz81 install
pascal@16560 33 }
pascal@16560 34
pascal@16560 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16560 36 genpkg_rules()
pascal@16560 37 {
pascal@16560 38 mkdir -p $fs/usr
pascal@16560 39 cp -a $install/usr/bin $fs/usr
pascal@16560 40 cp -a $install/usr/share $fs/usr
pascal@16560 41 }