summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-11-05 17:20:48 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-11-05 17:20:48 +0400
commitbccf6961105a9b3e0ab8978d875f16bc885db169 (patch)
treeae005e3db0938a6f3c1a15ca469be5b7530b8582
parentb65f8afd0b7d0ca666ad49216711a8bc9223181b (diff)
fix(build.sh): use proper `PREFIX` with `make install`
-rw-r--r--build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 8934b5e..1e8be57 100644
--- a/build.sh
+++ b/build.sh
@@ -45,7 +45,7 @@ pkg() {
"sync") curl -LO https://farajli.net/archive/"${package}".tar.gz ;;
"unpack") tar xf "${package}".tar.gz ;;
"compile") make -C "${package}" ;;
- "install") PREFIX="${BINDIR}" make -C "${package}" install ;;
+ "install") PREFIX=$(dirname "${BINDIR}") make -C "${package}" install ;;
"font_install") cp -r "${package}" "${FONTDIR}" ;;
?)
echo Invalid usage of pkg >&2