# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=tzdata-timed
pkgver=2021a
_pkgver=${pkgver}+git1
pkgrel=1
pkgdesc="Data files for the time daemon, timed"
url="https://github.com/sailfishos/tzdata-timed"
arch="noarch"
license="PDDL-1.0"
depends="tzdata"
makedepends="
	bash
	perl
	cmd:pcregrep
	tzdata-utils
	"
source="https://github.com/sailfishos/tzdata-timed/archive/$_pkgver/tzdata-timed-$_pkgver.tar.gz
	0001-Fixes-build-and-avoid-md5sum-mismatch-with-GMT-timez.patch
	"
options="!check" # No code to test
builddir="$srcdir/$pkgname-${_pkgver/+/-}"

build() {
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="
46b6e622aa5aace3a7f8d29dae00745ecab4f343dad599809c89f42bbf2d2add1b8f851b329dce061e50af9c1065ababe91eae8994bfc8e7faf7dba2fb95aab0  tzdata-timed-2021a+git1.tar.gz
900cb15fa1975a8410b23fdcbc3256ae0e7c532a26ea24042e1686e150a97f802cdd4c317ce213b605e4c141256bb9faaa5fe696f0e2c6e38e50b47bf3bbad1a  0001-Fixes-build-and-avoid-md5sum-mismatch-with-GMT-timez.patch
"
