summaryrefslogtreecommitdiff
path: root/community/chntpw/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/chntpw/PKGBUILD')
-rw-r--r--community/chntpw/PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/community/chntpw/PKGBUILD b/community/chntpw/PKGBUILD
index 16c8f504c..20d09257b 100644
--- a/community/chntpw/PKGBUILD
+++ b/community/chntpw/PKGBUILD
@@ -1,22 +1,25 @@
-# $Id: PKGBUILD 64647 2012-02-17 13:33:11Z lfleischer $
+# $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=110511
-pkgrel=2
-pkgdesc='Offline NT Password Editor - reset passwords in a Windows NT SAM user database file.'
+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=('a3fb358d1adec589cd6bc8dedf68896c')
+md5sums=('d60bc657206b07ad84d926649d6417dc')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's/^CFLAGS= \(.*\) -m32 $/CFLAGS= \1/' Makefile
+}
- [ "$CARCH" = "x86_64" ] && sed -i "s|CFLAGS= -DUSEOPENSSL -g -I. -I\$(OSSLINC) -Wall -m32|CFLAGS= -DUSEOPENSSL -g -I. -I\$(OSSLINC) -Wall|" Makefile
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
make
}