wok view zerofree/receipt @ rev 24491
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 22:59:06 2022 +0000 (2022-02-18) |
parents | 1b219c924233 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="zerofree"
4 VERSION="1.1.1"
5 CATEGORY="base-system"
6 SHORT_DESC="Keeping filesystem images sparse."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://frippery.org/uml/"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 DEPENDS="e2fsprogs"
15 BUILD_DEPENDS="e2fsprogs-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/zerofree-/!d;s|.*-||;s|.t.*||'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/-lext2fs/& -lcom_err/' Makefile
28 make
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $src/zerofree $fs/usr/bin
36 }