# Compiling Time: 0.01 SBU
# Contributor: kikadf <kikadf.01@gmail.com>
# Contributor: exceed <exceed.cedric@gmail.com>

options+=('asneeded')

pkgname=chntpw
pkgver=140201
_F_archive_name=${pkgname}-source
_F_cd_path=$pkgname-$pkgver
pkgrel=1
pkgdesc="Utility to (re)set the password of any user and registry editor on Windows NT/2K/XP system"
url="http://pogostick.net/~pnh/ntpasswd"
groups=('apps-extra')
archs=('i686' 'x86_64')
depends=('openssl>=1.0.0')
source=($url/$pkgname-source-$pkgver.zip)
up2date="Flastarchive $url/editor.html .zip"
sha1sums=('a28bef3fc4e333cd1d4abe40e07c3a75348bdd8d')

build()
{
	Fcd
	Fsed '-g' "${CFLAGS}" Makefile
	[ "$CARCH" == "x86_64" ] && Fsed '-m32' '' Makefile
	Fmake
	Fexe $_F_cd_path/{chntpw,chntpw.static,reged,reged.static,cpnt} /usr/bin/
	Fdoc $_F_cd_path/{regedit.txt,WinReg.txt,README.txt}
}

# optimization OK
