summaryrefslogtreecommitdiff
path: root/user/iputils/APKBUILD
blob: 142a5ff2d56501b786fc72592bef559671ddba6b (plain) (blame)
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
36
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=iputils
pkgver=20190515
pkgrel=0
pkgdesc="IP Configuration Utilities (and Ping)"
url="https://github.com/iputils/iputils/"
arch="all"
options="suid"
license="BSD-3-Clause AND GPL-2.0-or-later"
makedepends="docbook-xsl docbook-xsl-ns libcap-dev libgcrypt-dev libxslt meson
	openssl-dev"
replaces="bbsuid"
subpackages="$pkgname-doc $pkgname-lang $pkgname-openrc"
source="$pkgname-$pkgver.tgz::https://github.com/$pkgname/$pkgname/archive/s$pkgver.tar.gz"
builddir="$srcdir/$pkgname-s$pkgver"

build() {
        # we're waiting for idn support in musl so that we can enable it here
        # https://wiki.musl-libc.org/functional-differences-from-glibc.html#Name-Resolver/DNS
	meson --prefix /usr --buildtype=plain builddir -DUSE_IDN=false
	ninja -v -C builddir
}

check() {
	ninja -C builddir test
}

package() {
	DESTDIR=$pkgdir ninja -C builddir install

	ln -s tracepath "$pkgdir"/usr/bin/tracepath6
	ln -s ping "$pkgdir"/usr/bin/ping6
}

sha512sums="adb8831ca3a567b9a5f3762227c631aefa62eedbaa7578c2bfea90b6d494b9e0cccf49b68713912611ec56c352d6c517df9e8409c9c9478cfc5732371c8cf250  iputils-20190515.tgz"