Use build directory managing cargo-build-dependencies instead of users-home

This commit is contained in:
Fabian Bornschein 2023-06-12 10:05:29 +02:00
parent 85420d95a3
commit b32c854af0
No known key found for this signature in database
GPG key ID: D6A4F386B4881229
2 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,7 @@
pkgbase = czkawka
pkgdesc = Multi functional app to find duplicates, empty folders, similar images etc.
pkgver = 6.0.0
pkgrel = 0.1
pkgrel = 0.2
url = https://github.com/qarmin/czkawka
arch = aarch64
arch = armv7h

View file

@ -6,7 +6,7 @@ pkgname=(
czkawka-gui
)
pkgver=6.0.0
pkgrel=0.1
pkgrel=0.2
pkgdesc='Multi functional app to find duplicates, empty folders, similar images etc.'
url='https://github.com/qarmin/czkawka'
arch=(
@ -37,12 +37,18 @@ pkgver() {
build() {
cd ${pkgbase}
# Keep rust/cargo build-dependency management inside the build directory
export CARGO_HOME="${srcdir}/cargo"
cargo build --bin czkawka_cli --release --features heif
cargo build --bin czkawka_gui --release --features heif
}
check() {
cd ${pkgbase}
export CARGO_HOME="${srcdir}/cargo"
cargo test --bin czkawka_cli --release
dbus-run-session xvfb-run -s '-nolisten local' \
cargo test --bin czkawka_gui --release