wok view simh/receipt @ rev 25562
ext4magic: add current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 01 08:21:00 2023 +0000 (18 months ago) |
parents | 977dddd982e0 |
children | e6b7394ac676 |
line source
1 # SliTaz package receipt.
3 PACKAGE="simh"
4 VERSION="3.12.3"
5 CATEGORY="misc"
6 TAGS="emulator PDP VAX Interdata Honeywell altair nova"
7 SHORT_DESC="multi-system simulator."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="http://simh.trailing-edge.com/"
12 vers=${VERSION/./}
13 vers=${vers/./-}
14 TARBALL="${PACKAGE}-${VERSION}.zip"
15 WGET_URL="${WEB_SITE}sources/${PACKAGE}v$vers.zip"
17 BUILD_DEPENDS="libpcap-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/simh/!d;/zip/!d;s|.*simhv\\(.*\\).zip.*\".*|\\1|;s|.|&.|;s|-|.|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir BIN
30 make -j 1
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin
37 cp -a $src/BIN/* $fs/usr/bin
38 }