Commit 08cba733 authored by Francesco Colista's avatar Francesco Colista
Browse files

main/tzdata: fix builddir

parent b271888c
......@@ -20,21 +20,21 @@ source="http://www.iana.org/time-zones/repository/releases/tzcode$_tzcodever.tar
http://dev.alpinelinux.org/archive/posixtz/posixtz-$_ptzver.tar.xz
0001-posixtz-fix-up-lseek.patch"
_builddir="$srcdir"
builddir="$srcdir"
_timezones="africa antarctica asia australasia europe northamerica \
southamerica pacificnew etcetera backward systemv factory"
build() {
cd "$_builddir"
cd "$builddir"
make cc="${CC:-gcc}" CFLAGS="$CFLAGS -DHAVE_STDINT_H=1"
TZDIR="/usr/share/zoneinfo" || return 1
cd "$srcdir"/posixtz-$_ptzver
cd "$builddir"/posixtz-$_ptzver
make posixtz || return 1
}
package() {
cd "$_builddir"
cd "$builddir"
./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo ${_timezones}
./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo/right -L leapseconds ${_timezones}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment