wok annotate 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 |
rev | line source |
---|---|
pascal@17188 | 1 # SliTaz package receipt. |
pascal@17188 | 2 |
pascal@17188 | 3 PACKAGE="simh" |
pascal@25501 | 4 VERSION="3.12.3" |
pascal@17188 | 5 CATEGORY="misc" |
Hans-G?nter@23646 | 6 TAGS="emulator PDP VAX Interdata Honeywell altair nova" |
pascal@17188 | 7 SHORT_DESC="multi-system simulator." |
pascal@17188 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17188 | 9 LICENSE="GPL" |
pascal@17188 | 10 WEB_SITE="http://simh.trailing-edge.com/" |
Hans-G?nter@23646 | 11 |
Hans-G?nter@23646 | 12 vers=${VERSION/./} |
Hans-G?nter@23646 | 13 vers=${vers/./-} |
Hans-G?nter@23647 | 14 TARBALL="${PACKAGE}-${VERSION}.zip" |
Hans-G?nter@25305 | 15 WGET_URL="${WEB_SITE}sources/${PACKAGE}v$vers.zip" |
pascal@17188 | 16 |
pascal@17188 | 17 BUILD_DEPENDS="libpcap-dev" |
pascal@17188 | 18 |
pascal@24425 | 19 # What is the latest version available today? |
pascal@24425 | 20 current_version() |
pascal@24425 | 21 { |
pascal@24425 | 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 23 sed "/simh/!d;/zip/!d;s|.*simhv\\(.*\\).zip.*\".*|\\1|;s|.|&.|;s|-|.|" | sort -Vr | sed q |
pascal@24425 | 24 } |
pascal@24425 | 25 |
pascal@17188 | 26 # Rules to configure and make the package. |
pascal@17188 | 27 compile_rules() |
pascal@17188 | 28 { |
pascal@18376 | 29 mkdir BIN |
pascal@18375 | 30 make -j 1 |
pascal@17188 | 31 } |
pascal@17188 | 32 |
pascal@17188 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17188 | 34 genpkg_rules() |
pascal@17188 | 35 { |
pascal@17188 | 36 mkdir -p $fs/usr/bin |
Hans-G?nter@23646 | 37 cp -a $src/BIN/* $fs/usr/bin |
pascal@17188 | 38 } |