Date: Saturday, May 6, 2023 @ 21:00:07 Author: orhun Revision: 1459145
addpkg: sniffnet 1.1.4-2 Added: sniffnet/ sniffnet/repos/ sniffnet/trunk/ sniffnet/trunk/PKGBUILD ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Added: sniffnet/trunk/PKGBUILD =================================================================== --- sniffnet/trunk/PKGBUILD (rev 0) +++ sniffnet/trunk/PKGBUILD 2023-05-06 21:00:07 UTC (rev 1459145) @@ -0,0 +1,45 @@ +# Maintainer: Orhun Parmaksız <or...@archlinux.org> +# Contributor: Matteo Giordano <mail at matteogiordano dot me> +# Contributor: qubidt <qubidt at gmail dot com> + +pkgname=sniffnet +pkgver=1.1.4 +pkgrel=2 +pkgdesc="Application to comfortably monitor your network traffic" +arch=('x86_64') +url="https://github.com/GyulyVGC/sniffnet" +license=('Apache' 'MIT') +depends=('alsa-lib' 'fontconfig' 'libpcap' 'freetype2' 'glibc') +makedepends=('cargo') +install=$pkgname.install +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz" + "${pkgname}.desktop") +sha512sums=('a60f2024972f6882f3a820b6d9b0d1b8f441ded087b79889e995bc264c3adf0e50df15fb4bf0e41a3caa0d11ab694c5c5be613821f9da501cdb899de15ab7d60' + '39d23f967ac05579d9bb87f2c5fcf961f760b0cfab1138253bcc8b22fd9964e27bc9ec6c42e8ed49a287ec5443bf352baf8dd4b4d063c2f6aa29c714d38da2a3') +options=('!lto') + +prepare() { + cd "$pkgname-$pkgver" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname-$pkgver" + cargo build --frozen --release +} + +check() { + cd "$pkgname-$pkgver" + cargo test --frozen +} + +package() { + cd "$pkgname-$pkgver" + install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm 644 "resources/logos/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -Dm 644 "../${pkgname}.desktop" -t "$pkgdir/usr/share/applications" +} + +# vim: ts=2 sw=2 et: