wok view sz81/receipt @ rev 25615

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