contrib/ipcalc/Pkgfile

37 lines
777 B
Plaintext

# Description: ipcalc: calculate IPv4/6 broadcast, network and host range.
# URL: https://gitlab.com/ipcalc/ipcalc
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
# Depends on: meson ninja
name=ipcalc
version=1.0.1
release=1
source=(https://gitlab.com/${name}/${name}/-/archive/${version}/\
${name}-${version}.tar.bz2)
build() {
cd ${name}-${version}
meson setup build
ninja -C build
cat > ./ipcalc.1 <<- \!
.Dd June 20, 2021
.Dt IPCALC 1
.Os
.
.Sh NAME
.Nm ipcalc
.Nd Calculate IP broadcast, host range etc
.
.Bd -literal
!
cat ipcalc.1.md >> ./ipcalc.1
echo '.Ed' >> ./ipcalc.1
install -D -m 0755 build/ipcalc "${PKG}"/usr/bin/${name}
install -D -m 0644 ipcalc.1 "${PKG}"/usr/share/man/man1/${name}.1
}
# s-sh-mode