# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=ipcalc pkgver=1.0.2 pkgrel=0 pkgdesc="A modern IPv4/IPv6 ipcalc tool, assisting in network calculations in command line and as a tool for scripts." url="https://gitlab.com/ipcalc/ipcalc" arch="all" license="GPL-2.0-or-later" depends="libmaxminddb" makedepends="meson ninja libmaxminddb-dev ronn" subpackages="$pkgname-doc" source="https://gitlab.com/ipcalc/ipcalc/-/archive/$pkgver/ipcalc-$pkgver.tar.gz disable-failing-tests.patch" build() { abuild-meson \ -Duse_maxminddb=enabled \ -Duse_runtime_linking=enabled \ . output meson compile ${JOBS:+-j ${JOBS}} -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } sha512sums=" af0bf4679c09b43853a4254889f733a68ef5e390d1ed390e5f5da5859e818d9a3a95ec7faba42926c5eb1e510aa3c69807f6927047161ca9e7e9f928ec0ffc66 ipcalc-1.0.2.tar.gz 6e25ed36fa788a1d6905e14b6e1ccc0f2da2d9763ea517d6cddecd5f0b32f39085629abd32310205e323e021c7a9a965650c405882d9cb82a3e58deddd7e4143 disable-failing-tests.patch "