void-packages/srcpkgs/iputils/template

29 lines
1.0 KiB
Bash

# Template file for 'iputils'
pkgname=iputils
version=20221126
revision=1
build_style=meson
configure_args="-DUSE_IDN=false"
hostmakedepends="pkg-config docbook2x docbook-xsl-ns libcap-progs iproute2 gettext"
makedepends="libcap-devel"
depends="libcap-progs"
short_desc="Useful utilities for Linux networking (including ping)"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-3-Clause, GPL-2.0-or-later"
homepage="https://github.com/iputils/iputils"
changelog="https://raw.githubusercontent.com/iputils/iputils/master/CHANGES"
distfiles="https://github.com/iputils/iputils/archive/refs/tags/${version}.tar.gz"
checksum=745ea711fe06d5c57d470d21acce3c3ab866eb6afb69379a16c6d60b89bd4311
alternatives="
ping:ping:/usr/bin/${pkgname}-ping
ping:ping.8:/usr/share/man/man8/${pkgname}-ping.8
ping6:ping6:/usr/bin/${pkgname}-ping
ping6:ping6.8:/usr/share/man/man8/${pkgname}-ping.8"
post_install() {
mv ${DESTDIR}/usr/share/man/man8/{ping,${pkgname}-ping}.8
mv ${DESTDIR}/usr/bin/{ping,${pkgname}-ping}
vlicense Documentation/LICENSE.BSD3
}