blob: 20d09257bcbd43293562b63ce219125ac2d4f055 (
plain)
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
30
31
32
33
34
35
36
37
|
# $Id: PKGBUILD 105665 2014-02-13 09:45:47Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=chntpw
pkgver=140201
pkgrel=1
pkgdesc='Offline NT Password Editor - reset passwords in a Windows NT SAM user database file'
arch=('i686' 'x86_64')
url='http://pogostick.net/~pnh/ntpasswd/'
license=('GPL' 'LGPL')
makedepends=('openssl')
source=("http://pogostick.net/~pnh/ntpasswd/${pkgname}-source-${pkgver}.zip")
md5sums=('d60bc657206b07ad84d926649d6417dc')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i 's/^CFLAGS= \(.*\) -m32 $/CFLAGS= \1/' Makefile
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# install binaries, don't install static binaries!
install -Dm0755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm0755 "${srcdir}/${pkgname}-${pkgver}/reged" "${pkgdir}/usr/bin/reged"
install -Dm0755 "${srcdir}/${pkgname}-${pkgver}/cpnt" "${pkgdir}/usr/bin/cpnt"
for _f in *.txt; do
install -Dm0644 "${_f}" "${pkgdir}/usr/share/doc/${pkgname}/${_f}"
done
}
|