[arch-commits] Commit in rustypaste/trunk (PKGBUILD)
Frederik Schwan
freswa at gemini.archlinux.org
Sun Mar 13 22:23:26 UTC 2022
Date: Sunday, March 13, 2022 @ 22:23:26
Author: freswa
Revision: 1151638
enable lto
Modified:
rustypaste/trunk/PKGBUILD
----------+
PKGBUILD | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-13 22:22:46 UTC (rev 1151637)
+++ PKGBUILD 2022-03-13 22:23:26 UTC (rev 1151638)
@@ -3,7 +3,7 @@
pkgname=rustypaste
pkgver=0.6.5
-pkgrel=1
+pkgrel=2
pkgdesc='A minimal file upload/pastebin service'
arch=('x86_64')
url='https://github.com/orhun/rustypaste'
@@ -11,7 +11,6 @@
depends=('gcc-libs')
makedepends=('cargo')
backup=('etc/rustypaste/config.toml')
-options=(!lto)
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/orhun/rustypaste/archive/refs/tags/v${pkgver}.tar.gz
rustypaste.service
rustypaste.env
@@ -32,6 +31,7 @@
cd ${pkgname}-${pkgver}
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
+ CFLAGS+=' -ffat-lto-objects'
cargo build --release --frozen
}
@@ -38,6 +38,7 @@
check() {
cd ${pkgname}-${pkgver}
export RUSTUP_TOOLCHAIN=stable
+ CFLAGS+=' -ffat-lto-objects'
cargo test --frozen
}
More information about the arch-commits
mailing list