mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-08 12:22:15 +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>
|
# 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() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user