void-packages/srcpkgs/tzutils/template

33 lines
729 B
Bash

# Template file for 'tzutils'
pkgname=tzutils
version=2022a
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=e9d82a851a15bb5db2cbaae2c3fc633743ad9edc069e3738c5e8908978064ed8
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
}