# vim: set syn=sh:
# Packager: Phill Watkins <ubemail~at~ymail~dot~com>

pkgname=nwipe
pkgver=0.04
pkgrel=1pw
#arch=
source=("http://downloads.sourceforge.net/project/nwipe/nwipe-$pkgver.tar.gz")
sourcetemplate=http://people.salixos.org/pwatk/packages/13.2/ap/$pkgname
docs=("COPYING" "README" "RELEASE_NOTES")
url=http://sourceforge.net/projects/nwipe/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"nwipe (Secure disk eraser)"
"nwipe is a command that will securely erase disks using a variety of"
"recognised methods. It is a fork of the dwipe command used by Darik's"
"Boot and Nuke (dban)."
)


build() {
	set -e
	
	cd $startdir/src/$pkgname-$pkgver
	./configure \
	  --prefix=/usr \
	  --bindir=/usr/sbin \
	  --sysconfdir=/etc \
	  --localstatedir=/var \
	  --libdir=/usr/lib${LIBDIRSUFFIX} \
	  --mandir=/usr/man \
	  --infodir=/usr/info \
	  --docdir=/usr/doc/$pkgname-$pkgver \
	  --build=$arch-slackware-linux
	make -j $numjobs
	make install DESTDIR=$startdir/pkg

	set +e
}