wok view mdadm/receipt @ rev 24076

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 08 13:19:25 2021 +0000 (2021-07-08)
parents 079d56df3a6d
children bf28cc07ebf1
line source
1 # SliTaz package receipt.
3 PACKAGE="mdadm"
4 VERSION="4.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Software RAID tools"
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.kernel.org/pub/linux/utils/raid/mdadm/ANNOUNCE"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/linux/utils/raid/mdadm/$TARBALL"
14 BUILD_DEPENDS=""
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make mdadm
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin
32 cp -a $src/mdadm $fs/usr/bin
33 }