wok-current view hfsutils/receipt @ rev 24819

libnsl: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 23 09:20:46 2022 +0000 (2022-03-23)
parents af8d823a3077
children
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 - ${WEB_SITE}version.html 2>/dev/null | \
17 sed '/has been released/!d;s| has.*||;s|^[ \t]*||;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 }