Ports: Avoid absolute paths for install(1)

Just because your distro installs install(1) to /usr/bin doesn't mean
every distro does.
This commit is contained in:
Linus Groh authored and Nico Weber committed 2026-10-14 12:57:16 -04:00
1 parent 952b09889c
commit 368d170070
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -39,8 +39,7 @@ install() {
run make DESTDIR="$DESTDIR" "${installopts[@]}" install
# Install system configuration file that tells Alpine where to find CA certificates
# installed from the `ca-certificates` package.
# (The full `/usr/bin/install` path is used because `install()` is a function within this script.)
run /usr/bin/install \
run command install \
--mode=644 \
--no-target-directory \
-D \
+1 -1
View File
@@ -12,5 +12,5 @@ build() {
}
install() {
run /usr/bin/install -m755 libtree-sitter-vim.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/libtree-sitter-vim.so"
run command install -m755 libtree-sitter-vim.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/libtree-sitter-vim.so"
}