mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-08 04:12:09 +01:00
testing/fclones: build with LTO, fetch crates in prepare phase
This commit is contained in:
parent
2b77873114
commit
2abf3257f7
@ -2,7 +2,7 @@
|
||||
# Maintainer: Michał Polański <michal@polanski.me>
|
||||
pkgname=fclones
|
||||
pkgver=0.24.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Efficient duplicate file finder"
|
||||
url="https://github.com/pkolaczk/fclones"
|
||||
license="MIT"
|
||||
@ -13,12 +13,22 @@ source="https://github.com/pkolaczk/fclones/archive/v$pkgver/fclones-$pkgver.tar
|
||||
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() {
|
||||
cargo build --release --locked
|
||||
cargo build --frozen --release
|
||||
}
|
||||
|
||||
check() {
|
||||
cargo test --release --locked
|
||||
cargo test --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user