CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
tzdata: updated to 2018d
[crossrootfs.git] / tzdata / Pkgfile
index 56893623b86d3fbf2ea7dc91fb2b32610ae4e3f7..05e54bbe9349d4e49d4419c22e3705af5590cbb3 100644 (file)
@@ -4,7 +4,7 @@
 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 
 name=tzdata
-version=2016j
+version=2018d
 release=1
 
 source=(http://www.iana.org/time-zones/repository/releases/$name$version.tar.gz
@@ -19,19 +19,13 @@ build() {
 
   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
+  make CFLAGS="$CFLAGS" CC=$CC AR=$AR
+  make DESTDIR=$PKG install 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}
+  # conflict with glibc
+  rm $PKG/etc/localtime
+  rmdir $PKG/etc
 }