core/tzdata/PKGBUILD

52 lines
1.2 KiB
Bash
Raw Normal View History

#
# 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>
2010-03-13 23:25:19 +08:00
pkgname=tzdata
pkgver=2011f
2010-04-04 22:20:41 +08:00
pkgrel=1
# dash the next line if you want to skip the tests
_test=1
_tzcode=2011e
_tzdata=2011f
2010-03-13 23:25:19 +08:00
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')
2010-04-04 22:20:41 +08:00
source=(ftp://elsie.nci.nih.gov/pub/tzcode${_tzcode}.tar.gz \
ftp://elsie.nci.nih.gov/pub/${pkgname}${_tzdata}.tar.gz \
2010-03-13 23:25:19 +08:00
Makefile.patch)
md5sums=('fbfc05dbf9ebcfe7c4bba18549870173'
'cc8136284ae1e6c720a18e0f080242e0'
2010-03-13 23:25:19 +08:00
'a64ed97d1fc03c66ee8612c0d9f40507')
build() {
cd ${srcdir}
tar -xf tzcode${_tzcode}.tar.gz
tar -xf ${pkgname}${_tzdata}.tar.gz
2010-03-13 23:25:19 +08:00
patch -Np1 -i "${srcdir}/Makefile.patch"
2010-03-13 23:25:19 +08:00
make
if [ -n "${_test}" ]; then
echo "<<< STARTING TESTS >>>"
make check
echo "<<< ENDING TESTS >>>"
fi
}
package() {
cd ${srcdir}
make DESTDIR="${pkgdir}" install
2010-03-13 23:25:19 +08:00
rm "${pkgdir}/usr/share/zoneinfo/localtime"
}