wok-current view drbl/receipt @ rev 24938
mypaint-brushes: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 14 09:10:40 2022 +0000 (2022-04-14) |
parents | f33d804b2693 |
children | 1be16cc1cd50 |
line source
1 # SliTaz package receipt.
3 PACKAGE="drbl"
4 VERSION="2.25.10"
5 CATEGORY="misc"
6 SHORT_DESC="Diskless Remote Boot in Linux"
7 MAINTAINER="shann@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://drbl.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://free.nchc.org.tw/$PACKAGE-core/src/stable/$TARBALL"
14 DEPENDS="bash bc binutils dialog disktype dmidecode e2fsprogs ethtool expect \
15 file gnu-netcat lzop memtest mtools openssh parted partimage perl pigz procps \
16 reiserfsprogs rsync strace tcpdump syslinux systemd udpcast"
17 BUILD_DEPENDS=""
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs/
36 }