abinfo "Removing executables and leave them to install.sh ..."
rm -rv "$PKGDIR"/usr/bin

abinfo "Avoiding SRCDIR which is also used by install.sh ..."
export _SRCDIR="$SRCDIR"
unset SRCDIR

abinfo "Generating completions ..."
"$_SRCDIR"/target/release/generate-completions \
    "$_SRCDIR"/target/release/completions

abinfo "Installing extra files ..."
DESTDIR="$PKGDIR" \
PREFIX=/usr \
    "$_SRCDIR"/scripts/install.sh

abinfo "Restoring SRCDIR ..."
export SRCDIR="$_SRCDIR"
unset _SRCDIR
