wok-current annotate 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
rev   line source
pascal@18217 1 # SliTaz package receipt.
pascal@18217 2
pascal@18217 3 PACKAGE="hfsutils"
pascal@18217 4 VERSION="3.2.6"
pascal@18217 5 CATEGORY="system-tools"
pascal@18217 6 SHORT_DESC="HFS Filesystem user space tools."
pascal@18217 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18217 8 LICENSE="GPL2"
pascal@18217 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20669 10 WEB_SITE="https://www.mars.org/home/rob/proj/hfs/"
pascal@18217 11 WGET_URL="ftp://ftp.mars.org/pub/hfs/$TARBALL"
pascal@18217 12
pascal@24445 13 # What is the latest version available today?
pascal@24445 14 current_version()
pascal@24445 15 {
pascal@24614 16 wget -O - ${WEB_SITE}version.html 2>/dev/null | \
pascal@24614 17 sed '/has been released/!d;s| has.*||;s|^[ \t]*||;q'
pascal@24445 18 }
pascal@24445 19
pascal@18217 20 # Rules to configure and make the package.
pascal@18217 21 compile_rules()
pascal@18217 22 {
pascal@18217 23 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/man/man1
pascal@18217 24 sed -i "s|DEST =.|&$DESTDIR|" Makefile.in
pascal@18217 25 ./configure --prefix=/usr \
pascal@18217 26 $CONFIGURE_ARGS &&
pascal@18217 27 make &&
pascal@18217 28 make DESTDIR=$DESTDIR install
pascal@18217 29 }
pascal@18217 30
pascal@18217 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18217 32 genpkg_rules()
pascal@18217 33 {
pascal@18217 34 mkdir -p $fs//usr
pascal@18217 35 cp -a $install/usr/bin $fs/usr
pascal@18217 36 }