# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com # Contributor: Po-An,Yang(Antonio) # Todo: If there'a any files left in they cache they should probably be deleted on uninstall set -u pkgname='networkminer' pkgver='2.0' pkgrel='3' pkgdesc='A packet analyzer' arch=('any') url='http://www.netresec.com/' license=('GPL2') depends=('mono') _srcname="NetworkMiner_${pkgver//\./-}" source=("${_srcname}.zip::https://www.netresec.com/?download=NetworkMiner") sha256sums=('36251ea16966954412b804a0d7b51bcd077fff8f138cfb1fd06d3589fb5cd0a5') package() { set -u install -d "${pkgdir}/opt/" mv "${srcdir}/${_srcname}" "${pkgdir}/opt/NetworkMiner" #chmod +x "${pkgdir}/opt/NetworkMiner/NetworkMiner.exe" chmod -R go+w "${pkgdir}/opt/NetworkMiner/AssembledFiles/" "${pkgdir}/opt/NetworkMiner/Captures/" # Launcher install -Dm755 <(cat << EOF #!/bin/sh mono /opt/NetworkMiner/NetworkMiner.exe EOF ) "${pkgdir}/usr/bin/Networkminer.sh" # Desktop file for config tool install -Dm644 <(cat << EOF [Desktop Entry] Name=Network Miner GenericName=Packet analyser Comment=NetworkMiner packet analyser Exec=Networkminer.sh Terminal=false Type=Application #Icon= Categories=Application;Utilities; MimeType=application/x-executable EOF ) "${pkgdir}/usr/share/applications/NetworkMiner.desktop" set +u } set +u