# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=ophcrack
pkgver=3.7.0
pkgrel=1
pkgdesc="Windows password cracker based on rainbow tables"
url="http://ophcrack.sourceforge.net/"
arch="all"
license="GPL"
makedepends="$depends_dev expat-dev libressl-dev qt-dev"
source="https://downloads.sourceforge.net/project/ophcrack/ophcrack/$pkgver/ophcrack-$pkgver.tar.bz2"
options="!check"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--target=$CTARGET \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="27e73979ca3d733629b9b34c490488cc27140efb8b90d266f270c0b95572cf40319a3fb658c02448fc7a3b825cf05c18a69f5d91bd0656d8410a30645f8dc8c6  ophcrack-3.7.0.tar.bz2"
