# Template file for 'nwipe'
pkgname=nwipe
version=0.25
revision=1
build_style=gnu-configure
hostmakedepends="automake pkg-config"
makedepends="libuuid-devel libparted-devel ncurses-devel"
short_desc="Utility to securely erase disks"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-only"
homepage="https://github.com/martijnvanbrummelen/nwipe"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=27104ad5788ccee0f1238dba1e40f36bc454054d609ef037e6af156efeda0b67

CFLAGS="-D_FILE_OFFSET_BITS=64"

pre_configure() {
	sed -i 's,off64_t,off_t,g' src/*.[ch]
	sh init.sh
}
