wok view hfsutils/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents a78610b2eb47
children bc2b9d9bed6f
line source
1 # SliTaz package receipt.
3 PACKAGE="hfsutils"
4 VERSION="3.2.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="HFS Filesystem user space tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.mars.org/home/rob/proj/hfs/"
11 WGET_URL="ftp://ftp.mars.org/pub/hfs/$TARBALL"
13 # What is the latest version available today?
14 current_version()
15 {
16 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
17 sed '/hfsutils-[0-9]/!d;/tar/!d;s|.*hfsutils-||;s|.tar.*||;q'
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/man/man1
24 sed -i "s|DEST =.|&$DESTDIR|" Makefile.in
25 ./configure --prefix=/usr \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs//usr
35 cp -a $install/usr/bin $fs/usr
36 }