aboutsummaryrefslogtreecommitdiff
path: root/paru/dot-local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'paru/dot-local/bin')
-rwxr-xr-xparu/dot-local/bin/makepkg-smart9
1 files changed, 6 insertions, 3 deletions
diff --git a/paru/dot-local/bin/makepkg-smart b/paru/dot-local/bin/makepkg-smart
index e231d25..ad4f314 100755
--- a/paru/dot-local/bin/makepkg-smart
+++ b/paru/dot-local/bin/makepkg-smart
@@ -1,13 +1,12 @@
#!/bin/bash
-echo "==> makepkg-smart: got input "$@"" >&2
-
DEFAULT_BUILDDIR="/tmp/makepkg"
PERSIST_ROOT="$HOME/.cache/makepkg/build"
KEEP_PKGS="
neovim-bundled-git
+quickshell-git
"
pkgname_from_pkgbuild()
@@ -31,6 +30,10 @@ for p in $KEEP_PKGS; do
[ "$PKGNAME" = "$p" ] && KEEP=true && break
done
+BOLDGREEN='\e[1;32m'
+NOCOLOR='\e[0m'
+BOLD='\e[0;1m'
+
if $KEEP; then
export BUILDDIR="$PERSIST_ROOT/$PKGNAME"
mkdir -p "$BUILDDIR"
@@ -43,7 +46,7 @@ if $KEEP; then
export CCACHE_BASEDIR="$PWD"
export CCACHE_SLOPPINESS="time_macros"
- echo "==> makepkg-smart: using persistent BUILDDIR=$BUILDDIR with ccache" >&2
+ echo -e "${BOLDGREEN}==>${NOCOLOR} ${BOLD}makepkg-smart:${NOCOLOR} using persistent BUILDDIR=$BUILDDIR with ccache" >&2
else
export BUILDDIR="$DEFAULT_BUILDDIR"
fi