### this file is sourced not run
PKGVER=2014.02
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=chntpw-source-140201.zip
MD5SUM=d60bc657206b07ad84d926649d6417dc
SRC_URL=http://pogostick.net/~pnh/ntpasswd/$TARBALL
BUNDLE=

SLACKREQ='' # 
SLACKDESC='ntpasswd: ntpasswd 2014.02 (Reset Windows password)  
ntpasswd:  
ntpasswd: This is a utility to reset the password of any user that has a valid 
ntpasswd: local account on your Windows system. Supports all Windows from 
ntpasswd: NT3.5 to Win8.1, also 64 bit and also the Server versions (like 
ntpasswd: 2003, 2008, 2012). You do not need to know the old password to set a 
ntpasswd: new one. It works offline, that is, you have to shutdown your 
ntpasswd: computer and boot off a CD or USB disk to do the password reset. 
ntpasswd: Comes with a registry editor too.  
ntpasswd: 
ntpasswd: http://pogostick.net/~pnh/ntpasswd/
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	unzip $SRC_DIR/$TARBALL -d tmp
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/chntpw* &&
	for p in *.static; do
		cp $p /usr/bin/${p%.static}
	done &&
	
	mkdir -p /usr/share/doc/ntpasswd &&
	for p in *.txt; do
		cp $p /usr/share/doc/ntpasswd
	done &&
	
	pkg_build_slackdesc
}
