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"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;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
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)