summaryrefslogtreecommitdiff
path: root/testing/tzdata/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tzdata/PKGBUILD')
-rw-r--r--testing/tzdata/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/tzdata/PKGBUILD b/testing/tzdata/PKGBUILD
new file mode 100644
index 000000000..d51cfa78d
--- /dev/null
+++ b/testing/tzdata/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 151775 2012-03-02 14:25:01Z andyrtr $
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=tzdata
+pkgver=2012b
+pkgrel=1
+_tzcode=2012b
+_tzdata=2012b
+pkgdesc="Sources for time zone and daylight saving time data"
+arch=('i686' 'x86_64')
+url="http://www.iana.org/time-zones"
+license=('GPL')
+depends=()
+makedepends=()
+optdepends=('bash: required by tzselect')
+options=('!emptydirs')
+source=(#http://www.iana.org/time-zones/repository/releases/tzcode${_tzcode}.tar.gz
+ ftp://munnari.oz.au/pub/tzcode${_tzcode}.tar.gz
+ #http://www.iana.org/time-zones/repository/releases/${pkgname}${_tzdata}.tar.gz
+ ftp://munnari.oz.au/pub/${pkgname}${_tzdata}.tar.gz
+ Makefile.patch)
+md5sums=('6137322ffd36e1fd5128885be1c57008'
+ '0615fd29def380a917e528433c820368'
+ 'a64ed97d1fc03c66ee8612c0d9f40507')
+
+build() {
+ cd ${srcdir}
+
+ tar -xf tzcode${_tzcode}.tar.gz
+ tar -xf ${pkgname}${_tzdata}.tar.gz
+
+ patch -Np1 -i "${srcdir}/Makefile.patch"
+
+ make
+}
+
+check() {
+ cd ${srcdir}
+ make -k check # || /bin/true
+}
+
+package() {
+ cd ${srcdir}
+ make DESTDIR="${pkgdir}" install
+
+ rm "${pkgdir}/usr/share/zoneinfo/localtime"
+}