1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Kritoke <kritoke@nospam.gmail.com>
8 pkgdesc="Graphical interface for various networking tools"
9 url="https://gitlab.gnome.org/GNOME/gnome-nettool"
12 depends=(gtk3 libgtop iputils whois)
13 makedepends=(nmap bind net-tools git meson yelp-tools)
14 optdepends=('nmap: Port scanning'
16 'net-tools: Network statistics')
19 _commit=5748c0fa632c9caad9e46377ca1aa330dec4b757 # tags/gnome-nettool-42-0^0
20 source=("git+https://gitlab.gnome.org/GNOME/gnome-nettool.git#commit=$_commit"
23 '95437116039a453c7c15eb25b90e3818338d6b6a87437f384b3d6aded4a845d7')
27 git describe --tags | sed 's/^gnome-nettool-//;s/-/./;s/[^-]*-g/r&/;s/-/+/g'
33 # Fix build with recent Meson
34 git apply -3 ../fix-build.diff
38 arch-meson $pkgname build
39 meson compile -C build
43 meson test -C build --print-errorlogs
47 meson install -C build --destdir "$pkgdir"