wok-current view hfsprescue/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 | 3fbb6cb5f957 |
children | 0ba7891c7043 |
line source
1 # SliTaz package receipt.
3 PACKAGE="hfsprescue"
4 VERSION="3.4"
5 CATEGORY="base-system"
6 SHORT_DESC="HFS+ recovery tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.plop.at/en/hfsprescue.html"
11 WGET_URL="http://download.plop.at/$PACKAGE/$TARBALL"
13 DEPENDS="gcc-lib-base libcrypto zlib"
14 BUILD_DEPENDS="openssl-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://www.plop.at/en/hfsprescue/download.html 2>/dev/null | \
20 sed '/hfsprescue-[0-9]/!d;/tar/!d;/precompiled/d;s|.*hfsprescue-||;s|.tar.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 }