diff options
author | Hugo Osvaldo Barrera | 2022-10-04 15:58:42 +0200 |
---|---|---|
committer | Hugo Osvaldo Barrera | 2022-10-04 15:58:42 +0200 |
commit | d87c00d74e84fc72ea90f28863e571b31813d7b0 (patch) | |
tree | 1f61eb508c7da7361cf57d1e419ab57a70e18fc0 /PKGBUILD | |
parent | 548d5c71d5c2fd928064e68e050a055e8d18e463 (diff) | |
download | aur-d87c00d74e84fc72ea90f28863e571b31813d7b0.tar.gz |
Use absolute paths when changing directory
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2,7 +2,7 @@ pkgname=shotman pkgver=0.2.0 -pkgrel=2 +pkgrel=3 pkgdesc="Uncompromising screenshot GUI for Wayland" arch=("x86_64" "aarch64") url="https://git.sr.ht/~whynothugo/shotman" @@ -18,13 +18,13 @@ sha512sums=("SKIP") validpgpkeys=("1204CA9FC2FFADEEDC2961367880733B9D062837") prepare() { - cd "$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd "$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target @@ -32,14 +32,14 @@ build() { } check() { - cd "$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { - cd "$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" } |