diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-16 14:00:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-16 14:04:40 +0000 |
commit | cd6771ea69ad1a62dc3d056fb10c15aeb6d5c6c1 (patch) | |
tree | d284ec481c381d5e764890c91e697edfc14a0321 /main/tzdata/APKBUILD | |
parent | eeec11737f682830826f139e8b8837c5a87235ce (diff) | |
download | aports-cd6771ea69ad1a62dc3d056fb10c15aeb6d5c6c1.tar.bz2 aports-cd6771ea69ad1a62dc3d056fb10c15aeb6d5c6c1.tar.xz |
main/tzdata: moved from testing
Diffstat (limited to 'main/tzdata/APKBUILD')
-rw-r--r-- | main/tzdata/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/main/tzdata/APKBUILD b/main/tzdata/APKBUILD new file mode 100644 index 0000000000..eec6b8bb96 --- /dev/null +++ b/main/tzdata/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=tzdata +pkgver=2011c +_ptzver=0.1 +pkgrel=1 +pkgdesc="Timezone data" +url="http://www.twinsun.com/tz/tz-link.htm" +arch="all" +license="Public Domain" +depends= +makedepends= +install= +subpackages="$pkgname-doc" +source="ftp://elsie.nci.nih.gov/pub/tzcode$pkgver.tar.gz + ftp://elsie.nci.nih.gov/pub/tzdata$pkgver.tar.gz + http://git.alpinelinux.org/cgit/ncopa/posixtz.git/snapshot/posixtz-$_ptzver.tar.bz2 + Makefile.patch" + +_builddir="$srcdir" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 + + cd "$srcdir"/posixtz-$_ptzver + make posixtz +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/share/zoneinfo/localtime + + install -Dm755 "$srcdir"/posixtz-$_ptzver/posixtz \ + "$pkgdir"/usr/bin/posixtz +} + +md5sums="35c09d1cd46c1f40985562334521a7e5 tzcode2011c.tar.gz +1a01b1a3346c1531daab4970d0a2cd14 tzdata2011c.tar.gz +be1ca94f79abfa367b4c54a51737ba91 posixtz-0.1.tar.bz2 +a64ed97d1fc03c66ee8612c0d9f40507 Makefile.patch" |