wok-6.x view nwipe/receipt @ rev 25436
Up bacon (4.5), clex (4.7), rcssmin (1.1.1), remind (04.00.03)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 31 16:18:16 2022 +0000 (2022-08-31) |
parents | 9b4df34618c8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="nwipe"
4 VERSION="0.28"
5 CATEGORY="misc"
6 SHORT_DESC="nwipe secure disk eraser"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/martijnvanbrummelen/nwipe"
11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
13 DEPENDS="ncurses parted util-linux-uuid dmidecode"
14 BUILD_DEPENDS="pkg-config libtool ncurses-dev parted-dev dmidecode"
16 current_version()
17 {
18 wget -O - $WEB_SITE/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 export LDFLAGS="$LDFLAGS -ltinfo"
26 sed 's|sys/types.h>|&\n#include <sys/wait.h>|' -i src/nwipe.h
27 ./init.sh
28 ./configure --prefix=/usr \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 }