Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / podlet
Commits:
6a6142e5 by DeepChirp at 2026-06-15T10:46:41+02:00
Build process tweaks
Comply to our Rust packaging guidelines and enable LTO
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -13,14 +13,21 @@ makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('2dee85888e0f4ad1d8d7f6c7579d00faa69bb8dbcb4708706ef8db92e41f9bef')
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked --target host-tuple
+}
+
build() {
cd "$pkgname-$pkgver"
- cargo build --release --locked --all-features
+ export CARGO_PROFILE_RELEASE_LTO=true
+ export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
+ cargo build --frozen --release --all-features
}
check() {
cd "$pkgname-$pkgver"
- cargo test --release --locked
+ cargo test --frozen --all-features
}
package() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/podlet/-/commit/6a6142e5eea56effa6607ee04d70be4d1978e0b1
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/podlet/-/commit/6a6142e5eea56effa6607ee04d70be4d1978e0b1
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help