wok-current view cramfs/receipt @ rev 24436

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 13:09:42 2022 +0000 (2022-02-13)
parents 458227f754da
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="cramfs"
4 VERSION="1.1"
5 CATEGORY="base-system"
6 SHORT_DESC="simple and small, compressed filesystem."
7 LICENSE="GPL2"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://cramfs.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="zlib"
14 BUILD_DEPENDS="zlib-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/cramfs/files/cramfs/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/cramfs/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/sbin
34 cp -a $src/mkcramfs $fs/usr/sbin
35 cp -a $src/cramfsck $fs/usr/sbin
36 }