fix(pkgbuild): honour CARGO_TARGET_DIR in install path

The act_runner exports CARGO_TARGET_DIR=/cache/target for cache
persistence, but the three Rust-app PKGBUILDs hardcoded
target/release/<bin>. Run 87 compiled 8 min then failed at
install stage. Use ${CARGO_TARGET_DIR:-target} so both CI and
local makepkg work.
This commit is contained in:
nevaforget committed 2026-04-23 13:04:31 +02:00
1 parent e0d89095e0
commit 33a0bfedb3
4 files changed
+9 -3

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ build() {
package() {
cd "$srcdir/moonlock"
install -Dm755 target/release/moonlock "$pkgdir/usr/bin/moonlock"
install -Dm755 "${CARGO_TARGET_DIR:-target}/release/moonlock" "$pkgdir/usr/bin/moonlock"
# PAM configuration
install -Dm644 config/moonlock-pam "$pkgdir/etc/pam.d/moonlock"