wok view whdd/receipt @ rev 24175

Up usbids (20211224)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 30 11:41:25 2021 +0000 (2021-12-30)
parents 2466c3434ab0
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="whdd"
4 VERSION="3.0"
5 CATEGORY="misc"
6 SHORT_DESC="HDD diagnostic and data recovery tool"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://whdd.github.io/"
11 WGET_URL="https://github.com/whdd/whdd/archive/$VERSION.tar.gz"
13 DEPENDS="ncursesw"
14 BUILD_DEPENDS="ncursesw-dev dialog-dev"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 export LDFLAGS="$LDFLAGS -lncursesw"
26 ./build.sh
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/bin $fs
34 }