d78c78803b
Some packages require tzdata to testing, however, adding `tzdata` to those checkdepends will break masterdir, since `tzdata` provides `/usr/share/zoneinfo/UTC`, hence, it will be removed upon cleanup. Adding tzdata into base-chroot requires tzdata, thus tzutils is bootstrappable. Let's do it.
27 lines
682 B
Bash
27 lines
682 B
Bash
# Template file for 'tzutils'
|
|
pkgname=tzutils
|
|
version=2021a
|
|
revision=2
|
|
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=bd7ecd99cbb0a2f15bb7e38be2cbc04dced89922fce4ac0ffcd1ca844ba9362f
|
|
|
|
do_build() {
|
|
echo "$version" >version
|
|
make TZDIR=/usr/share/zoneinfo CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
|
}
|
|
|
|
do_install() {
|
|
vbin zic
|
|
vbin zdump
|
|
vbin tzselect
|
|
vman zic.8
|
|
vman zdump.8
|
|
vman tzselect.8
|
|
vlicense LICENSE
|
|
}
|