wok-current annotate nwipe/receipt @ rev 24906

updated minidlna (1.2.1 -> 1.3.0)
author Hans-G?nter Theisgen
date Sat Apr 09 14:37:52 2022 +0100 (2022-04-09)
parents 9b4df34618c8
children
rev   line source
pascal@22841 1 # SliTaz package receipt.
pascal@22841 2
pascal@22841 3 PACKAGE="nwipe"
pascal@23155 4 VERSION="0.28"
pascal@22841 5 CATEGORY="misc"
pascal@22841 6 SHORT_DESC="nwipe secure disk eraser"
pascal@22841 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@22841 8 LICENSE="GPL2"
pascal@22841 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@22841 10 WEB_SITE="https://github.com/martijnvanbrummelen/nwipe"
pascal@22841 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@22841 12
pascal@22843 13 DEPENDS="ncurses parted util-linux-uuid dmidecode"
pascal@22841 14 BUILD_DEPENDS="pkg-config libtool ncurses-dev parted-dev dmidecode"
pascal@22841 15
pascal@22841 16 current_version()
pascal@22841 17 {
pascal@22841 18 wget -O - $WEB_SITE/releases 2>/dev/null | \
pascal@24034 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@22841 20 }
pascal@22841 21
pascal@22841 22 # Rules to configure and make the package.
pascal@22841 23 compile_rules()
pascal@22841 24 {
pascal@22841 25 export LDFLAGS="$LDFLAGS -ltinfo"
pascal@23156 26 sed 's|sys/types.h>|&\n#include <sys/wait.h>|' -i src/nwipe.h
pascal@22841 27 ./init.sh
pascal@22841 28 ./configure --prefix=/usr \
pascal@22841 29 --mandir=/usr/share/man \
pascal@22841 30 $CONFIGURE_ARGS &&
pascal@22841 31 make &&
pascal@22841 32 make DESTDIR=$DESTDIR install
pascal@22841 33 }
pascal@22841 34
pascal@22841 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@22841 36 genpkg_rules()
pascal@22841 37 {
pascal@22841 38 mkdir -p $fs/usr
pascal@22841 39 cp -a $install/usr/bin $fs/usr
pascal@22841 40 }