[arch-commits] Commit in zstd/trunk (PKGBUILD)
Maxime Gauduin
alucryd at gemini.archlinux.org
Thu Jun 16 09:56:29 UTC 2022
Date: Thursday, June 16, 2022 @ 09:56:29
Author: alucryd
Revision: 448794
upgpkg: zstd 1.5.2-6
Modified:
zstd/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-16 09:45:53 UTC (rev 448793)
+++ PKGBUILD 2022-06-16 09:56:29 UTC (rev 448794)
@@ -5,7 +5,7 @@
pkgname=zstd
pkgver=1.5.2
-pkgrel=5
+pkgrel=6
pkgdesc='Zstandard - Fast real-time compression algorithm'
url='https://facebook.github.io/zstd/'
arch=(x86_64)
@@ -22,22 +22,35 @@
validpgpkeys=(4EF4AC63455FC9F4545D9B7DEF8FE99528B52FFD)
build() {
- cmake -S ${pkgname}-${pkgver}/build/cmake -B build -G Ninja \
+ export CFLAGS+=' -ffat-lto-objects'
+ export CXXFLAGS+=' -ffat-lto-objects'
+ cmake -S ${pkgname}-${pkgver}/build/cmake -B build-shared -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZSTD_BUILD_CONTRIB=ON \
- -DZSTD_BUILD_TESTS=ON
- cmake --build build
+ -DZSTD_BUILD_STATIC=OFF \
+ -DZSTD_BUILD_TESTS=OFF \
+ -DZSTD_PROGRAMS_LINK_SHARED=ON
+ cmake --build build-shared
+ cmake -S ${pkgname}-${pkgver}/build/cmake -B build-static -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DZSTD_BUILD_CONTRIB=ON \
+ -DZSTD_BUILD_STATIC=ON \
+ -DZSTD_BUILD_TESTS=ON \
+ -DZSTD_PROGRAMS_LINK_SHARED=OFF
+ cmake --build build-static
}
check() {
- cd build/tests
+ cd build-static/tests
ctest
}
package() {
- DESTDIR="${pkgdir}" cmake --install build
+ DESTDIR="${pkgdir}" cmake --install build-shared
ln -sf /usr/bin/zstd "${pkgdir}/usr/bin/zstdmt"
install -Dm 644 ${pkgname}-${pkgver}/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
More information about the arch-commits
mailing list