aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-15 15:43:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-15 15:43:14 +0000
commite3d5b5fcfb87e0d8ee79dab00e96a54cec3213c8 (patch)
tree08fd7976d62ac35be3c52327104baa81bd3568d1 /testing
parente276f97b0814067e46f0621ef150b3b0e1563e6e (diff)
downloadaports-e3d5b5fcfb87e0d8ee79dab00e96a54cec3213c8.tar.bz2
aports-e3d5b5fcfb87e0d8ee79dab00e96a54cec3213c8.tar.xz
testing/tzdata: include posixtz tool
Diffstat (limited to 'testing')
-rw-r--r--testing/tzdata/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/testing/tzdata/APKBUILD b/testing/tzdata/APKBUILD
index 4c10a39abc..eec6b8bb96 100644
--- a/testing/tzdata/APKBUILD
+++ b/testing/tzdata/APKBUILD
@@ -2,7 +2,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tzdata
pkgver=2011c
-pkgrel=0
+_ptzver=0.1
+pkgrel=1
pkgdesc="Timezone data"
url="http://www.twinsun.com/tz/tz-link.htm"
arch="all"
@@ -13,6 +14,7 @@ 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"
@@ -29,14 +31,21 @@ prepare() {
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"