summaryrefslogtreecommitdiffstats
path: root/main/tzdata
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-01-11 17:07:26 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2013-01-11 17:07:26 +0000
commitbda457781033706330c25d26c7ef76cfccf52d7a (patch)
tree8af3df23a1c0610982b07efee3bf7018a7e67b11 /main/tzdata
parent0c26b0d6e16370547d4b8cef4d97a7373935b2d1 (diff)
downloadaports-bda457781033706330c25d26c7ef76cfccf52d7a.tar.bz2
aports-bda457781033706330c25d26c7ef76cfccf52d7a.tar.xz
main/tzdata: fix for eglibc
Diffstat (limited to 'main/tzdata')
-rw-r--r--main/tzdata/APKBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/main/tzdata/APKBUILD b/main/tzdata/APKBUILD
index 80644e655..b96832119 100644
--- a/main/tzdata/APKBUILD
+++ b/main/tzdata/APKBUILD
@@ -4,7 +4,7 @@ pkgname=tzdata
pkgver=2012j
_tzcodever=2011i
_ptzver=0.3
-pkgrel=0
+pkgrel=1
pkgdesc="Timezone data"
url="http://www.twinsun.com/tz/tz-link.htm"
arch="all"
@@ -42,9 +42,17 @@ 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
+
+ if [ "$ALPINE_LIBC" = "eglibc" ]; then
+ # tzselect is bashish
+ depends="bash"
+ # we have this in eglibc
+ rm -rf "$pkgdir"/usr/sbin
+ else
+ rm -f "$pkgdir"/usr/bin/tzselect
+ install -Dm755 "$srcdir"/posixtz-$_ptzver/posixtz \
+ "$pkgdir"/usr/bin/posixtz || return 1
+ fi
}
md5sums="cf7f4335b7c8682899fa2814e711c1b2 tzcode2011i.tar.gz