[arch-commits] Commit in chntpw/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 19:02:29 UTC 2020


    Date: Tuesday, July 7, 2020 @ 19:02:29
  Author: felixonmars
Revision: 660121

archrelease: copy trunk to community-staging-x86_64

Added:
  chntpw/repos/community-staging-x86_64/
  chntpw/repos/community-staging-x86_64/PKGBUILD
    (from rev 660120, chntpw/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: chntpw/repos/community-staging-x86_64/PKGBUILD (from rev 660120, chntpw/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 19:02:29 UTC (rev 660121)
@@ -0,0 +1,36 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=chntpw
+pkgver=140201
+pkgrel=4
+pkgdesc='Offline NT Password Editor - reset passwords in a Windows NT SAM user database file'
+arch=('x86_64')
+url='https://pogostick.net/~pnh/ntpasswd/'
+license=('GPL' 'LGPL')
+makedepends=('openssl')
+source=("https://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
+}


More information about the arch-commits mailing list