mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-15 18:51:48 +02:00
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
# Maintainer:
|
|
pkgname=linuxptp
|
|
pkgver=4.1
|
|
pkgrel=0
|
|
pkgdesc="User space PTP stack for Linux"
|
|
url="https://linuxptp.nwtime.org/"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="
|
|
bsd-compat-headers
|
|
linux-headers
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/richardcochran/linuxptp/archive/refs/tags/v$pkgver.tar.gz
|
|
include-string.patch
|
|
"
|
|
options="!check" # no tests
|
|
|
|
_bins="hwstamp_ctl nsm phc2sys phc_ctl pmc ptp4l timemaster ts2phc tz2alt"
|
|
for _bin in $_bins; do
|
|
depends="$depends $pkgname-$_bin=$pkgver-r$pkgrel"
|
|
subpackages="$subpackages $pkgname-$_bin:split"
|
|
done
|
|
|
|
build() {
|
|
make \
|
|
CC="${CC:-cc}" \
|
|
version="$pkgver" \
|
|
EXTRA_CFLAGS="$CFLAGS -flto=auto"
|
|
}
|
|
|
|
package() {
|
|
make \
|
|
prefix=/usr \
|
|
mandir=/usr/share/man \
|
|
DESTDIR="$pkgdir" \
|
|
install
|
|
}
|
|
|
|
split() {
|
|
local name="${subpkgname#"$pkgname"-}"
|
|
pkgdesc="$pkgdesc ($name utility)"
|
|
depends=""
|
|
|
|
amove usr/sbin/$name
|
|
}
|
|
|
|
sha512sums="
|
|
144c03677f2c61c58d05c5c5dbb771b7aac3860507d9ba814f67f6da024c3cb2019f9e8cf39b983d39a6feddd1b24a1f40a678b4ff7af8aa564ee813e322dfae linuxptp-4.1.tar.gz
|
|
bc57c09d02e40f01b8df4de23202261b4b720d539b9d25890957bce96c97327420c1cd9dfbd56bf94a2508f90d9d628261946818b3ad52f521dda337ca7ff5d7 include-string.patch
|
|
"
|