blob: 31a0a75499ee1514046a855971ce89a00fe0101c (
plain)
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
37
38
39
|
# Maintainer: Logan Sevcik <logan+aur@sevcik.email>
pkgname=nqptp-git
pkgver=1.2.5.dev.r10.gcfa8315
pkgrel=1
pkgdesc="A daemon that monitors timing data from PTP clocks"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/mikebrady/nqptp#readme"
license=('GPL2')
provides=(nqptp)
conflicts=(nqptp)
replaces=(nqptp)
backup=()
options=()
source=("git+https://github.com/mikebrady/nqptp.git" nqptp.sysusers)
noextract=()
md5sums=('SKIP'
'a799945151c4b51797a5e5a35cf94d88')
_gitname="nqptp"
pkgver() {
cd "$srcdir/$_gitname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_gitname"
autoreconf -fi
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$_gitname"
make DESTDIR="$pkgdir/" install
mkdir -p "$pkgdir/usr/lib/systemd/system" "$pkgdir/usr/lib/sysusers.d/"
cp nqptp.service "$pkgdir/usr/lib/systemd/system/"
cp ../nqptp.sysusers "$pkgdir/usr/lib/sysusers.d/nqptp.conf"
}
|