aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/nwipe/APKBUILD
blob: bafead7251e4ba9d858c6c978db1d046c1c839bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=nwipe
pkgver=0.16
pkgrel=0
pkgdesc="Securely erase disks using a variety of recognized methods"
url="http://nwipe.sourceforge.net"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="parted-dev ncurses-dev autoconf automake"
install=""
subpackages=""
source="http://downloads.sourceforge.net/nwipe/nwipe-$pkgver.tar.gz"
_builddir="$srcdir"/nwipe-$pkgver

prepare() {
	cd "$_builddir"
	aclocal && autoconf && autoheader && automake --add-missing
}

build() {
	cd "$_builddir"
	CFLAGS="$CFLAGS -D_GNU_SOURCE" \
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="98487303370494b65df47e98649a054a  nwipe-0.16.tar.gz"
sha256sums="509aebba371272764cacb446efce3f87b6a47bbc6e6717a1830b5bed4e0fb4bc  nwipe-0.16.tar.gz"
sha512sums="65985b9b963e2815c5aecdf1d728c802e4b4e97cd496a8e725e8a4c9040dd20ef7f727bfcd0fc012a1f5484f79322831c932e5e4c025c7a1704a687fd956d42a  nwipe-0.16.tar.gz"