summaryrefslogtreecommitdiff
path: root/core/tzdata/PKGBUILD
blob: feac7ba6410d73878e7f3bdfdcce9c39a2b477bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id: PKGBUILD 152303 2012-03-06 15:04:33Z 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"
}