# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

_pkgname=systemd-timesyncd-wait
pkgver=20170119
pkgdesc="Proper time-sync.target support for systemd-timesyncd"
url="https://lukeshu.com/git/$_pkgname.git"
license=('Apache')

pkgrel=2
arch=('i686' 'x86_64')
depends=('systemd')
makedepends=('go')
source=("https://repo.parabola.nu/other/~lukeshu/$_pkgname/$_pkgname-$pkgver.tar.gz")
md5sums=('96b298f1934a6587c7001862adae16ca')

pkgname=$_pkgname-git
provides=($_pkgname)
conflicts=($_pkgname)

_gitver='commit=d6d7ed035c4f4a1f8e968e70726050c9fa4553e4'
mkdepends=('git')
mksource=("$_pkgname-$pkgver::git://git.lukeshu.com/$_pkgname.git#$_gitver")
mkmd5sums=('SKIP')

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  make
}

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