# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=recon-ng _commit="63acef781344" pkgver=4.8.2 pkgrel=0 pkgdesc="Full-featured Web Reconnaissance framework written in Python" url="https://bitbucket.org/LaNMaSteR53/recon-ng" arch="noarch" license="GPL3" depends="python py-dicttoxml py-dnspython py-jsonrpclib py-lxml py-mechanize py-slowaes py-xlsxwriter py-olefile py-pypdf2" depends_dev="" makedepends="$depends_dev" install="" subpackages="" source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/LaNMaSteR53/$pkgname/get/v$pkgver.tar.gz" builddir="$srcdir"/LaNMaSteR53-$pkgname-$_commit build() { cd "$builddir" sed -i recon-ng -i recon-cli -i recon-rpc -e "s:sys.path.append('./core/'):import os\nos.chdir(os.path.dirname(os.path.realpath(__file__)))\nsys.path.append('./core/'):g" } package() { cd "$builddir" mkdir -p "$pkgdir"/usr/share/$pkgname mkdir -p "$pkgdir"/usr/bin cp -R * "$pkgdir"/usr/share/$pkgname for pkg in recon-rpc recon-cli recon-ng; do ln -s /usr/share/$pkgname/$pkg "$pkgdir"/usr/bin/$pkg || return 1 done } md5sums="41db04f2bcd65ee3991996ec4688b57f recon-ng-4.8.2.tar.gz" sha256sums="30d836a93443be2eb0261dab720a9badc18218d2afed40bc965fdf14bd49af7f recon-ng-4.8.2.tar.gz" sha512sums="9158cb3ab70ee399c0f331fbebf5b095c89cdf6caec148abe4eefc6616bc34103a56575f6a1dfd53a2d65f396ee667a508a79c08a7de7b3267e1dcf814dc564f recon-ng-4.8.2.tar.gz"