wok view extundelete/receipt @ rev 24385

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 11:38:23 2022 +0000 (7 months ago)
parents 304e84c72408
children
line source
1 # SliTaz package receipt.
3 PACKAGE="extundelete"
4 VERSION="0.2.4"
5 CATEGORY="base-system"
6 SHORT_DESC="Recover deleted files from an ext3 or ext4 partition."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://extundelete.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/extundelete/$TARBALL"
13 DEPENDS="e2fsprogs gcc-lib-base"
14 BUILD_DEPENDS="e2fsprogs-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/extundelete/files/extundelete/ 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|.*/extundelete/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|i_dir_acl|i_size_high|' src/insertionops.cc
28 sed -i 's/*inode;/inodebuf;/' src/block.c
29 ./configure LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lcom_err" \
30 -prefix=/usr $CONFIGURE_ARGS &&
31 make && make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/usr $fs
38 }