mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Use build directory managing cargo-build-dependencies instead of users-home
This commit is contained in:
parent
85420d95a3
commit
b32c854af0
2 changed files with 8 additions and 2 deletions
2
.SRCINFO
2
.SRCINFO
|
|
@ -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
|
||||
|
|
|
|||
8
PKGBUILD
8
PKGBUILD
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue