wok-6.x view memtester/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | be11ceb31dcf |
children | fff755dd0f58 |
line source
1 # SliTaz package receipt.
3 PACKAGE="memtester"
4 VERSION="4.5.1"
5 CATEGORY="misc"
6 TAGS="test diagnostic RAM"
7 SHORT_DESC="A userspace utility for testing the memory subsystem for faults."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://pyropus.ca/software/memtester"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/old-versions/$TARBALL"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 make
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/memtester $fs/usr/bin
38 }