From: Armaan Bhojwani Date: Thu, 15 Jul 2021 18:21:44 +0000 (-0400) Subject: kiss-hook: simplify X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=4ed670650e83bba0ad108e91582e9aa1cee9dccd kiss-hook: simplify --- diff --git a/kiss-hook b/kiss-hook index c65bff6..cbab6dc 100755 --- a/kiss-hook +++ b/kiss-hook @@ -1,16 +1,6 @@ #!/usr/bin/sh -e case $TYPE in - pre-extract) - [ -t 2 ] && { - printf '\033]0;kiss: %s (%d/%d)\a' \ - "$PKG" "${pkg_cur:-?}" "${pkg_total:-?}" >&2 - } - ;; - pre-build) - IFS=. read -r _start_ < /proc/uptime - ;; - post-build) # Ensure that '$DEST' is set. : "${DEST:?DEST is unset}" @@ -26,17 +16,10 @@ case $TYPE in "$DEST/usr/share/fish" \ "$DEST/usr/share/applications" \ "$DEST/usr/share/consolefonts" \ - IFS=. read -r _end _ < /proc/uptime - - ( - _s=$((_end - _start)) - _h=$((_s / 60 / 60 % 24)) - _m=$((_s / 60 % 60)) - - [ "$_h" = 0 ] _u="${_u}${_h}h " - [ "$_m" = 0 ] _u="${_u}${_m}m " - - log "$PKG" "Build finished in ${_u:-${_s}s}" - ) + "$DEST/usr/share/doc" \ + "$DEST/usr/share/licenses" \ + "$DEST/usr/share/gnupg" \ + "$DEST/usr/share/libinput" \ + "$DEST/usr/share/ffmpeg" ;; esac