aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-09-26 01:42:02 +0300
committerCem Keylan <cem@ckyln.com>2021-09-26 01:42:02 +0300
commit915b2eb2ba1d0c922dd8e0ec26c6c79faec257d7 (patch)
tree70b8a2e5ca846dfa92541ff32b0613f5bc1a5281
parentbb340325ef1fcefecd8bf86dc6c21fd841f5ad4b (diff)
downloadrepository-915b2eb2ba1d0c922dd8e0ec26c6c79faec257d7.tar.gz
tzdata: don't use the makefile's install target
-rwxr-xr-xextra/tzdata/build12
1 files changed, 4 insertions, 8 deletions
diff --git a/extra/tzdata/build b/extra/tzdata/build
index d334d2a5..a83056ce 100755
--- a/extra/tzdata/build
+++ b/extra/tzdata/build
@@ -3,12 +3,10 @@
pkg_dir=$1
make CC="${CC:-gcc}" LDFLAGS="$LDFLAGS -static"
-make DESTDIR="$1" install
-# Get rid of the sbin directory
-mv "$1/usr/sbin/zic" "$1/usr/bin/zic"
-rm -rf "$1/usr/sbin"
-rm -rf "${1:?}/etc"
+clinst -Dm755 -t "$1/usr/bin" zic zdump
+clinst -Dm755 -s '1c#!/bin/sh' tzselect "$1/usr/bin/tzselect"
+clman -d "$1" zic.8 zdump.8 tzselect.8
set -- africa asia australasia europe northamerica southamerica
@@ -17,6 +15,4 @@ set -- africa asia australasia europe northamerica southamerica
./zic -d "$pkg_dir/usr/share/zoneinfo/right" -L leapseconds "$@"
./zic -d "$pkg_dir/usr/share/zoneinfo" -p America/New_York
-# The 'tzselect' script is not great by any means, but it will work with most
-# POSIX compatible shells, if not all.
-clsed '1c#!/bin/sh' "$pkg_dir/usr/bin/tzselect"
+clinst -Dm644 -t "$pkg_dir/usr/share/zoneinfo" ./*.tab