summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera2022-10-04 15:58:42 +0200
committerHugo Osvaldo Barrera2022-10-04 15:58:42 +0200
commitd87c00d74e84fc72ea90f28863e571b31813d7b0 (patch)
tree1f61eb508c7da7361cf57d1e419ab57a70e18fc0 /PKGBUILD
parent548d5c71d5c2fd928064e68e050a055e8d18e463 (diff)
downloadaur-d87c00d74e84fc72ea90f28863e571b31813d7b0.tar.gz
Use absolute paths when changing directory
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index efe2fd93d09d..c587ac578d5f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
}