# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=mongoaudit pkgver=222.70b83e8 pkgrel=5 pkgdesc='A powerful MongoDB auditing and pentesting tool .' groups=('blackarch' 'blackarch-scanner' 'blackarch-fuzzer') arch=('any') url='https://github.com/stampery/mongoaudit' license=('MIT') depends=('python' 'python-pymongo' 'python-urwid' 'python-setuptools' 'python-dnspython') makedepends=('git' 'python-setuptools') source=("git+https://github.com/stampery/$pkgname.git") sha512sums=('SKIP') pkgver() { cd $pkgname echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } build() { cd $pkgname python setup.py build } package() { cd $pkgname python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.* install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }