testing/fclones: build with LTO, fetch crates in prepare phase

This commit is contained in:
Jakub Jirutka 2022-05-21 02:58:56 +02:00 committed by Michał Polański
parent 2b77873114
commit 2abf3257f7

View File

@ -2,7 +2,7 @@
# Maintainer: Michał Polański <michal@polanski.me> # Maintainer: Michał Polański <michal@polanski.me>
pkgname=fclones pkgname=fclones
pkgver=0.24.0 pkgver=0.24.0
pkgrel=0 pkgrel=1
pkgdesc="Efficient duplicate file finder" pkgdesc="Efficient duplicate file finder"
url="https://github.com/pkolaczk/fclones" url="https://github.com/pkolaczk/fclones"
license="MIT" license="MIT"
@ -13,12 +13,22 @@ source="https://github.com/pkolaczk/fclones/archive/v$pkgver/fclones-$pkgver.tar
musl-fix.patch musl-fix.patch
" "
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO="true"
export CARGO_PROFILE_RELEASE_PANIC="abort"
prepare() {
default_prepare
cargo fetch --locked
}
build() { build() {
cargo build --release --locked cargo build --frozen --release
} }
check() { check() {
cargo test --release --locked cargo test --frozen
} }
package() { package() {