mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-26 10:12:13 +01:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=ipcalc
|
|
pkgver=1.0.1
|
|
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 -v -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
967396f0bd7f455d90049bf827f7109fc819a6d4a6635fd06a38490e8feb2ce754ebc26064953e7fe42eaee2b0501f0493615dcb6a11d259face3c5d8ae84cc5 ipcalc-1.0.1.tar.gz
|
|
6e25ed36fa788a1d6905e14b6e1ccc0f2da2d9763ea517d6cddecd5f0b32f39085629abd32310205e323e021c7a9a965650c405882d9cb82a3e58deddd7e4143 disable-failing-tests.patch
|
|
"
|