tzutils: fix version, set bootstrap=yes

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.
This commit is contained in:
Đoàn Trần Công Danh 2021-06-09 18:31:25 +07:00 committed by Đoàn Trần Công Danh
parent 0a8ce14abd
commit d78c78803b
1 changed files with 4 additions and 5 deletions

View File

@ -1,16 +1,18 @@
# Template file for 'tzutils' # Template file for 'tzutils'
pkgname=tzutils pkgname=tzutils
version=2021a version=2021a
revision=1 revision=2
bootstrap=yes
wrksrc="tz-${version}" wrksrc="tz-${version}"
short_desc="Time zone and daylight-saving time utilities" short_desc="Time zone and daylight-saving time utilities"
maintainer="Anthony Iliopoulos <ailiop@altatus.com>" maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="Public Domain, BSD-3-Clause" license="Public Domain, BSD-3-Clause"
homepage="https://www.iana.org/time-zones" homepage="https://www.iana.org/time-zones"
distfiles="https://github.com/eggert/tz/archive/${version}.tar.gz" distfiles="https://github.com/eggert/tz/archive/${version}.tar.gz"
checksum=bd7ecd99cbb0a2f15bb7e38be2cbc04dced89922fce4ac0ffcd1ca844ba9362f checksum=bd7ecd99cbb0a2f15bb7e38be2cbc04dced89922fce4ac0ffcd1ca844ba9362f
do_build() { do_build() {
echo "$version" >version
make TZDIR=/usr/share/zoneinfo CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" make TZDIR=/usr/share/zoneinfo CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
} }
@ -21,8 +23,5 @@ do_install() {
vman zic.8 vman zic.8
vman zdump.8 vman zdump.8
vman tzselect.8 vman tzselect.8
}
post_install() {
vlicense LICENSE vlicense LICENSE
} }