void-packages/srcpkgs/tzutils/template
2021-11-09 19:04:39 +01:00

32 lines
729 B
Bash

# Template file for 'tzutils'
pkgname=tzutils
version=2021e
revision=1
bootstrap=yes
wrksrc="tz-${version}"
short_desc="Time zone and daylight-saving time utilities"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="Public Domain, BSD-3-Clause"
homepage="https://www.iana.org/time-zones"
distfiles="https://github.com/eggert/tz/archive/${version}.tar.gz"
checksum=11908a7f18530ca3013c8458d902a54cdd3382276bdd56891db074b1af4a26b8
do_build() {
echo "$version" >version
make TZDIR=/usr/share/zoneinfo KSHELL=/bin/sh \
CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}
do_check() {
make check
}
do_install() {
vbin zic
vbin zdump
vbin tzselect
vman zic.8
vman zdump.8
vman tzselect.8
vlicense LICENSE
}