X-Git-Url: http://gitweb/?a=blobdiff_plain;f=tzdata%2FPkgfile;h=56893623b86d3fbf2ea7dc91fb2b32610ae4e3f7;hb=9e82e2071e1b1d71ff7d37fa7915f0eacbdc8338;hp=f2eab0395c2e005873328271fa81288d4f33ab77;hpb=6c4f6dc574ad334bd625e53947bc3cf3e6a584c0;p=crossrootfs.git diff --git a/tzdata/Pkgfile b/tzdata/Pkgfile index f2eab03..5689362 100644 --- a/tzdata/Pkgfile +++ b/tzdata/Pkgfile @@ -4,22 +4,34 @@ # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu name=tzdata -version=2015g +version=2016j release=1 source=(http://www.iana.org/time-zones/repository/releases/$name$version.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode$version.tar.gz - tzcode-makefile.patch zic_host-makefile.patch) + zic_host-makefile.patch) build() { - patch -p1 -i $SRC/tzcode-makefile.patch - # first compile native zic binary make CFLAGS="" CC="gcc" zic cp zic zic_host make clean - patch -p0 -i $SRC/zic_host-makefile.patch - make - make DESTDIR=$PKG install + patch -p1 -i $SRC/zic_host-makefile.patch + + make -j1 install \ + CFLAGS="$CFLAGS" \ + DESTDIR=$PKG \ + TOPDIR=/usr \ + TZDIR=/usr/share/zoneinfo \ + ETCDIR=/usr/sbin \ + MANDIR=/usr/share/man \ + CC=$CC AR=$AR + + # provided by man-pages + rm -r $PKG/usr/share/man/man{5,8} + + # move tzselect to /usr/bin + install -d $PKG/usr/bin + mv $PKG/usr/{sbin/tzselect,bin} }