wok view testdisk/receipt @ rev 25532
Add some current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 10:46:05 2023 +0000 (20 months ago) |
parents | 1a6247d8730a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="testdisk"
4 VERSION="7.1"
5 CATEGORY="system-tools"
6 TAGS="recovery rescue"
7 SHORT_DESC="Data recovery tools (testdisk + photorec)."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.cgsecurity.org/wiki/TestDisk"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://www.cgsecurity.org/$TARBALL"
15 SUGGESTED="btrfs-progs dosfstools e2fsprogs f2fs-tools hfsprogs hfsutils \
16 jfsutils lvm2 mtools nilfs-utils ntfsprogs reiser4progs \
17 reiserfsprogs util-linux xfsprogs"
18 DEPENDS="e2fsprogs jpeg krb5 libcomerr3 ncurses ncursesw ntfs-3g ntfsprogs zlib"
19 BUILD_DEPENDS="e2fsprogs-dev jpeg-dev ncurses-dev ntfs-3g-dev ntfsprogs-dev"
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed '/Download/!d;/^<a /!d;s|.*<b>||;s|</.*||'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i '/alloc_data_t list_search_space={/{s/={/;/;n;s/.list /list_search_space&/;s/$/;/;nd}' \
31 src/qphotorec.cpp
32 sed -i '/file_info_t dir_list = {/{s/= {/;/;n;s/.list /dir_list&/;s/,$/;/;n;s/.name/dir_list&/;s/$/;/;nd}' \
33 src/qpsearch.cpp
34 sed -i 's/COLOR_RED/COLOR_YELLOW/' \
35 src/intrfn.c
37 ./configure \
38 --with-ntfs3g \
39 $CONFIGURE_ARGS &&
40 make &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 }