diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/chntpw/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/chntpw/PKGBUILD')
-rw-r--r-- | community/chntpw/PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/chntpw/PKGBUILD b/community/chntpw/PKGBUILD new file mode 100644 index 000000000..78c094e4a --- /dev/null +++ b/community/chntpw/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 91796 2010-09-28 06:24:38Z tpowa $ +# Maintainer: Tobias Powalowski <tpowa@archlinux.org> +pkgname=chntpw +pkgver=100627 +pkgrel=1 +pkgdesc="The Offline NT Password Editor - enables you to view some information and change user passwords in a Windows NT SAM userdatabase 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=('8b046c2073f27eed728e18635ba72dd4') +sha1sums=('4b2a7e7a406ca9ecb68c9ab4fb6012864828806d') + +build() { + if [ "$CARCH" = "x86_64" ]; then + cd ${srcdir}/${pkgname}-${pkgver} + sed -i "s|CFLAGS= -DUSEOPENSSL -g -I. -I\$(OSSLINC) -Wall -m32|CFLAGS= -DUSEOPENSSL -g -I. -I\$(OSSLINC) -Wall|" Makefile + fi + cd ${srcdir}/${pkgname}-${pkgver} + make + # install binaries, don't install static binaries! + install -Dm755 ${srcdir}/${pkgname}-${pkgver}/${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -Dm755 ${srcdir}/${pkgname}-${pkgver}/reged ${pkgdir}/usr/bin/reged + install -Dm755 ${srcdir}/${pkgname}-${pkgver}/cpnt ${pkgdir}/usr/bin/cpnt + for doc in *.txt; do + install -Dm644 ${doc} ${pkgdir}/usr/share/doc/${pkgname}/${doc} + done +} |