blob: 723bc15d140be335f9e4c7eff73e46f79e9d7351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/hint/bash
# 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:-PKGBUILD}}")") -- %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
|