# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=polenum pkgver=23.b07ca35 pkgrel=1 pkgdesc='A python script to extract the password policy information from a windows machine.' arch=('any') url='https://github.com/Wh1t3Fox/polenum/' license=('custom') depends=('impacket' 'python2') makedepends=('git') source=("git+https://github.com/Wh1t3Fox/$pkgname.git") sha512sums=('SKIP') pkgver() { cd $pkgname echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } prepare() { cd $pkgname sed -i '1s/python$/&2.7/' "$pkgname.py" } package() { cd $pkgname install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname" install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }