SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "nwipe"

# SliTaz package receipt.

PACKAGE="nwipe"
VERSION="0.28"
CATEGORY="misc"
SHORT_DESC="nwipe secure disk eraser"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/martijnvanbrummelen/nwipe"
WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"

DEPENDS="ncurses parted util-linux-uuid dmidecode"
BUILD_DEPENDS="pkg-config libtool ncurses-dev parted-dev dmidecode"

current_version()
{
    wget -O - $WEB_SITE/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -ltinfo"
    sed 's|sys/types.h>|&\n#include <sys/wait.h>|' -i src/nwipe.h
    ./init.sh
    ./configure --prefix=/usr \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)