New package: chntpw-140201

This commit is contained in:
Leah Neukirchen 2017-06-19 17:40:23 +02:00
parent ae49cc7252
commit 1d6f725c74

30
srcpkgs/chntpw/template Normal file
View File

@ -0,0 +1,30 @@
# Template file for 'chntpw'
pkgname=chntpw
version=140201
revision=1
build_style=gnu-makefile
hostmakedepends="unzip"
makedepends="libressl-devel"
short_desc="Offline Windows Password and Registry Editor"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
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
}