#!/usr/bin/env bash # non-executable, but put this there as a hint to text editors # This file should be 'source'd by makepkg.conf to enable librefetch edit_dlagents() { local dlagent="@bindir@/librefetch -p $(printf %q "$(realpath -Lm "${BUILDFILE:-$BUILDSCRIPT}")") -- %u %o" local i for i in "${!DLAGENTS[@]}"; do if [[ "${DLAGENTS[$i]}" = https::* ]]; then DLAGENTS[$i]="https::$dlagent" fi done DLAGENTS+=("libre::$dlagent") } edit_dlagents unset -f edit_dlagents