]> git.armaanb.net Git - bin.git/commitdiff
kiss-hook: simplify
authorArmaan Bhojwani <me@armaanb.net>
Thu, 15 Jul 2021 18:21:44 +0000 (14:21 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Thu, 15 Jul 2021 18:21:44 +0000 (14:21 -0400)
kiss-hook

index c65bff6521dd6078f6106b9ef875b07e714bcedf..cbab6dca90fd7dc4b256fe444136e3024194c0da 100755 (executable)
--- 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