diff options
author | chipbuster | 2021-01-15 12:45:14 -0600 |
---|---|---|
committer | chipbuster | 2021-01-15 12:45:14 -0600 |
commit | 2d1fdffd9960b16691cf60f0ea88b683dbc19d80 (patch) | |
tree | 74fc9e677bfa6e94877ff8eedf07867aa70a5c14 | |
parent | 41d403a8e0bbf94c980d0d54af41a421379921b8 (diff) | |
download | aur-2d1fdffd9960b16691cf60f0ea88b683dbc19d80.tar.gz |
Add fix for CARGO_TARGET_DIR
As reported on AUR, packaging fails if a custom target dir is set via
the CARGO_TARGET_DIR env variable. This patch contributed by
AUR user @nickelc.
-rw-r--r-- | PKGBUILD | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -29,6 +29,7 @@ check() { package() { cd "$pkgname-$pkgver" - install -Dm755 "target/release/starship" "$pkgdir/usr/bin/$pkgname" + targetdir=${CARGO_TARGET_DIR:-target} + install -Dm755 "$targetdir/release/starship" "$pkgdir/usr/bin/$pkgname" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |