summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLuis Martinez2021-08-27 00:34:56 -0500
committerLuis Martinez2021-08-27 00:34:56 -0500
commitf36105dea480293da906c6b9ba28dc492e017f8a (patch)
tree4f734283b01439a0a530b7a5396e7b46d88eefd2 /PKGBUILD
parent6db0b00ec3db812731e15ed3bec3151d0f5a256a (diff)
downloadaur-image-roll.tar.gz
update in accordance to updated Rust packaging guidelines
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 11 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index da44fef597a..070142e4d4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=image-roll
pkgver=1.3.1
-pkgrel=1
+pkgrel=2
pkgdesc="A simple and fast GTK image viewer with basic image manipulation tools"
arch=('x86_64')
url="https://github.com/weclaw1/image-roll"
@@ -12,14 +12,22 @@ makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('789d30ea79cd5812eca7d0ed458d59140512ce9090cde2a566784c685bb00805')
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
build() {
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
cd "$pkgname-$pkgver"
- cargo build --release --locked --all-features --target-dir=target
+ cargo build --release --frozen --all-features
}
check() {
+ export RUSTUP_TOOLCHAIN=stable
cd "$pkgname-$pkgver"
- cargo test --release --locked --target-dir=target
+ cargo test --frozen --all-features
}
package() {