# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=nohidy pkgver=67.22c1283 pkgrel=3 pkgdesc='The system admins best friend, multi platform auditing tool.' groups=('blackarch' 'blackarch-recon' 'blackarch-networking' 'blackarch-defensive') arch=('any') url='https://github.com/flipchan/Nohidy' license=('GPL2') depends=('python2') makedepends=('git') source=("$pkgname::git+https://github.com/flipchan/Nohidy.git") sha512sums=('SKIP') pkgver() { cd $pkgname echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } prepare() { cd $pkgname grep -iRl 'python' . | xargs sed -i 's|python$|python2|g' } package() { cd $pkgname install -dm 755 "$pkgdir/usr/bin" install -dm 755 "$pkgdir/usr/share/$pkgname" install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md README.txt \ Help/* install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" rm -rf README* LICENSE Help cp -a * "$pkgdir/usr/share/$pkgname/" cat > "$pkgdir/usr/bin/$pkgname" << EOF #!/bin/sh cd /usr/share/$pkgname exec python2 main.py "\$@" EOF chmod +x "$pkgdir/usr/bin/$pkgname" }