diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..620efe759e0e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: /dev/rs0 <rs0@secretco.de.com> + +pkgname=creddump-git +pkgver=r10.3df4a14 +pkgrel=1 +pkgdesc="Extracts credentials from Windows registry hives." + +arch=('any') +url="https://github.com/Neohapsis/creddump7" +license=('GPL3') + +replaces=('creddump') +conflicts=('creddump') +provides=('creddump=0.3') + +makedepends=('git') +depends=('python2' 'python2-crypto') + +source=("creddump::git+https://github.com/Neohapsis/creddump7.git") +md5sums=('SKIP') + +pkgver() { + cd "creddump" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "creddump" + + install -d "${pkgdir}/usr/share/licenses/creddump" + install -Dm0644 "COPYING" "${pkgdir}/usr/share/licenses/creddump/LICENSE" + + rm CHANGELOG COPYING + + install -d "${pkgdir}/usr/share/creddump" + cp -a . "${pkgdir}/usr/share/creddump" + + install -d "${pkgdir}/usr/bin" + for file in *.py; do + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "$file" + install -Dm0755 "$file" "${pkgdir}/usr/share/creddump" + ln -s "/usr/share/creddump/${file}" "${pkgdir}/usr/bin/${file%.*}" + done +} |