summaryrefslogtreecommitdiff
path: root/community/ipcalc/APKBUILD
blob: 04eb092672c7234912589fbb2a4b4e5b2e407365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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
"