aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/chntpw/template
blob: 7ccac88fe06d7cd4647cf432aa516bf0634ef5c9 (plain) (blame)
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
# Template file for 'chntpw'
pkgname=chntpw
version=140201
revision=2
build_style=gnu-makefile
hostmakedepends="unzip"
short_desc="Offline Windows Password and Registry Editor"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only, LGPL-2.1-only"
homepage="http://pogostick.net/~pnh/ntpasswd/"
distfiles="http://pogostick.net/~pnh/ntpasswd/${pkgname}-source-${version}.zip"
checksum=96e20905443e24cba2f21e51162df71dd993a1c02bfa12b1be2d0801a4ee2ccc

post_extract() {
	sed -i '/CFLAGS/s/-m32//' Makefile
	sed -i '1i#include <stdint.h>' ntreg.h
}
pre_build() {
	CFLAGS="$CFLAGS $LDFLAGS"
}
do_install() {
	vbin chntpw
	vbin reged
	vbin sampasswd
	vbin samusrgrp

	vdoc MANUAL.txt
	vdoc regedit.txt
}