summaryrefslogtreecommitdiff
path: root/testing/tzdata/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tzdata/PKGBUILD')
-rw-r--r--testing/tzdata/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/tzdata/PKGBUILD b/testing/tzdata/PKGBUILD
new file mode 100644
index 000000000..631c3f3b5
--- /dev/null
+++ b/testing/tzdata/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 117841 2011-04-04 18:27:28Z andyrtr $
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=tzdata
+pkgver=2011e
+pkgrel=1
+_tzcode=2011e
+_tzdata=2011e
+pkgdesc="Sources for time zone and daylight saving time data"
+arch=('i686' 'x86_64')
+url="http://www.twinsun.com/tz/tz-link.htm"
+license=('GPL')
+depends=()
+makedepends=()
+optdepends=('sh: required by tzselect')
+options=('!emptydirs')
+source=(ftp://elsie.nci.nih.gov/pub/tzcode${_tzcode}.tar.gz \
+ ftp://elsie.nci.nih.gov/pub/${pkgname}${_tzdata}.tar.gz \
+ Makefile.patch)
+md5sums=('fbfc05dbf9ebcfe7c4bba18549870173'
+ '044a07072300a0ee72b046e5a9a4ec90'
+ 'a64ed97d1fc03c66ee8612c0d9f40507')
+
+build() {
+ cd ${srcdir}
+
+ tar -xf tzcode${_tzcode}.tar.gz
+ tar -xf ${pkgname}${_tzdata}.tar.gz
+
+ patch -Np1 -i "${srcdir}/Makefile.patch"
+
+ make
+}
+
+package() {
+ cd ${srcdir}
+ make DESTDIR="${pkgdir}" install
+
+ rm "${pkgdir}/usr/share/zoneinfo/localtime"
+}