/
PKGBUILD
28 lines (22 loc) · 869 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=polenum
pkgver=1.4
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')
source=("https://github.com/Wh1t3Fox/polenum/archive/$pkgver.tar.gz")
sha512sums=('ff6be3d51e0e3f5c166a1e9e044a25420b932fbe8fdf6bfccc90a3a342a76a62981613fe2f85ed3316187e254bd72cda855c03c44cf9a7b6361fe1554d62a4b9')
prepare() {
cd "$pkgname-$pkgver"
sed -i '1s/python$/&2.7/' polenum.py
}
package() {
cd "$pkgname-$pkgver"
install -Dm 755 polenum.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"
}