summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb0ccccb85a1d45b03aac88927f7b265e8642b1e (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
# Maintainer: João Vitor S. Anjos <jvanjos at protonmail dot com>
# Contributor: Jeff Parent <jecxjo@sdf.lonestar.org>

pkgname=openrdate
pkgver=1.11
pkgrel=1
pkgdesc="Set the system's date from a remote host"
arch=('i686' 'x86_64' 'arm' 'armv6h')
url="https://github.com/resurrecting-open-source-projects/openrdate"
license=('BSD')
depends=('libbsd')
makedepends=('autoconf' 'automake')
conflicts=('rdate')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('931c4ad143421e516bfd8c964a6e125ec193d5f1e524262a8a6a011181df4721')

build() {
  cd ${pkgname}-${pkgver}
  ./autogen.sh
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="$pkgdir" install
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
  install -Dm 644 README.md ChangeLog HISTORY -t "${pkgdir}/usr/share/doc/${pkgname}"
}

# vim: ts=2 sw=2 et: