summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: ad8a2bc926aff979867ec4495360e5814320b73a (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
# Maintainer: Dominik Schrempf <dominik.schrempf at gmail dot com>
# Contributor: Jonathan Ryan <jryan at curious-computing dot com>
# Contributor: Hussam Al-Tayeb <hussam at visp dot net dot lb>
pkgname=htpdate
pkgver=1.2.2
pkgrel=3
pkgdesc="A client for time synchronisation"
arch=(i686 x86_64)
url="http://www.vervest.org/htp/"
license=(GPL2)
depends=('glibc')
# TODO: In the process of adding two patches from OpenWRT, but they are rejected.
# See https://aur.archlinux.org/packages/htpdate/.
source=("http://www.vervest.org/htp/archive/c/${pkgname}-${pkgver}.tar.xz"
        "htpdate.service"
        "100-pidfile.patch")
md5sums=('aad8c33933648532ac8716c809b15be1'
         'd00fce722a88150cffb1b322e6cc8869'
         'f4612bb44274ed571117724a49abb3c1')

build() {
  cd ${pkgname}-${pkgver}
  patch htpdate.c ../100-pidfile.patch
  make
}

package() {
  install -D -m 644 htpdate.service ${pkgdir}/usr/lib/systemd/system/htpdate.service
  cd ${pkgname}-${pkgver}
  install -D -m 755 htpdate ${pkgdir}/usr/bin/htpdate
  install -D -m 644 htpdate.8 ${pkgdir}/usr/share/man/man8/htpdate.8
}