CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
file: updated to 5.33-2
[crossrootfs.git] / tzdata / Pkgfile
index de6f6c929ff902f76b58abf5867d7a33cbd52328..05e54bbe9349d4e49d4419c22e3705af5590cbb3 100644 (file)
@@ -4,26 +4,28 @@
 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 
 name=tzdata
-version=2012f
+version=2018d
 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
+  patch -p1 -i $SRC/zic_host-makefile.patch
+
+  make CFLAGS="$CFLAGS" CC=$CC AR=$AR
+  make DESTDIR=$PKG install CC=$CC AR=$AR
 
-  # fix error when directory exists
-  sed 's|mkdir |mkdir -p |g' -i Makefile
+  # provided by man-pages
+  rm -r $PKG/usr/share/man/man{5,8}
 
-  make DESTDIR=$PKG install
+  # conflict with glibc
+  rm $PKG/etc/localtime
+  rmdir $PKG/etc
 }