opt/iputils/Pkgfile

31 lines
784 B
Plaintext
Raw Normal View History

2019-05-23 17:38:20 +02:00
# Description: Basic networking utilities
2021-02-16 14:45:48 +01:00
# URL: https://github.com/iputils/iputils
# Maintainer: CRUX System Team, core-ports at crux dot nu
2024-09-06 10:19:22 +02:00
# Depends on: libcap
2019-05-23 17:38:20 +02:00
name=iputils
2024-09-06 10:19:22 +02:00
version=20240905
2020-08-22 14:54:51 +02:00
release=1
2024-09-06 10:19:22 +02:00
source=(https://github.com/iputils/iputils/releases/download/$version/$name-$version.tar.xz)
2019-05-23 17:38:20 +02:00
build() {
meson setup build $name-$version \
2021-02-16 14:45:48 +01:00
--prefix=/usr \
--buildtype=plain \
2022-01-03 15:45:12 +01:00
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
2023-12-23 10:32:29 +01:00
-D BUILD_MANS=false \
-D SKIP_TESTS=true
2019-05-23 17:38:20 +02:00
2021-02-16 14:45:48 +01:00
meson compile -C build -j ${JOBS:-1}
2024-09-06 10:19:22 +02:00
install -d $PKG/{{sbin,bin},usr/{bin,sbin,man/man8}}
2021-02-16 14:45:48 +01:00
install build/ping/ping $PKG/bin/
install build/arping $PKG/sbin/
2022-11-26 11:13:20 +01:00
install build/{tracepath,clockdiff} $PKG/usr/sbin/
2024-09-06 10:19:22 +02:00
install $name-$version/doc/*.8 $PKG/usr/man/man8
2020-11-21 17:32:47 +01:00
2022-01-03 15:45:12 +01:00
chmod u+s $PKG/bin/ping
2019-05-23 17:38:20 +02:00
}