summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ef86344791438072807d152797830a984ee42a8 (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
# Maintainer: Matthew McGinn <mamcgi@gmail.com>
pkgname=ptpd
pkgver=2.3.1
pkgrel=2
pkgdesc="The PTP daemon (PTPd) implements the Precision Time protocol (PTP) as defined by the relevant IEEE 1588 standard. PTP Version 2 implements IEEE-1588-2008. PTP was developed to provide very precise time coordination of LAN connected computers."
arch=('any')
url="https://github.com/ptpd/ptpd"
_github_url="https://github.com/ptpd/ptpd"
license=('BSD')
depends=('libpcap')
optdepends=('net-snmp')
provides=('ptpd')
source=("http://sourceforge.net/projects/ptpd/files/ptpd/2.3.1/ptpd-2.3.1.tar.gz/download")
md5sums=('253bab7ab51d969616ea811be1f132f3')

prepare() {
	cd "$pkgname-$pkgver"
}

build() {
	cd "$pkgname-$pkgver"
	./configure --prefix=/usr --sbindir=/usr/bin
	make
}

check() {
	cd "$pkgname-$pkgver"
	make -k check
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}