mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 18:42:14 +08:00
49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=tzdata
|
|
pkgver=2011h
|
|
pkgrel=2
|
|
_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"
|
|
}
|