diff options
author | root <root@rshg047.dnsready.net> | 2011-07-09 23:10:17 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-09 23:10:17 +0000 |
commit | d1e588afc2779754c0abd1122ecf4f8e3c863d7a (patch) | |
tree | b9373ca2187d6796b8045bae62418621abf01ff4 /testing/tzdata/PKGBUILD | |
parent | d006db78a1ce530e9df8a65f87bf39e8d6cc88e5 (diff) |
Sat Jul 9 23:10:17 UTC 2011
Diffstat (limited to 'testing/tzdata/PKGBUILD')
-rw-r--r-- | testing/tzdata/PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/tzdata/PKGBUILD b/testing/tzdata/PKGBUILD new file mode 100644 index 000000000..93a648734 --- /dev/null +++ b/testing/tzdata/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 130868 2011-07-08 14:35:26Z andyrtr $ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> + +pkgname=tzdata +pkgver=2011h +pkgrel=1 +_tzcode=2011g +_tzdata=2011h +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=('bash: 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=('ecb564279b28c5b184421c525d997d6c' + '546d27b6c1e5e1097bd512651815017f' + '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 check +} + +package() { + cd ${srcdir} + make DESTDIR="${pkgdir}" install + + rm "${pkgdir}/usr/share/zoneinfo/localtime" +} |