* update zstd to 1.5.6-1.2

This commit is contained in:
Alexander Baldeck 2024-10-06 23:41:45 +02:00
parent 02cc52fb50
commit d606b40b09

View File

@ -6,10 +6,10 @@
pkgname=zstd pkgname=zstd
pkgver=1.5.6 pkgver=1.5.6
pkgrel=1.1 pkgrel=1.2
pkgdesc='Zstandard - Fast real-time compression algorithm' pkgdesc='Zstandard - Fast real-time compression algorithm'
url='https://facebook.github.io/zstd/' url='https://facebook.github.io/zstd/'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) arch=(x86_64 powerpc64le powerpc64 powerpc espresso riscv64)
license=( license=(
BSD-3-Clause BSD-3-Clause
GPL-2.0-only GPL-2.0-only
@ -43,21 +43,21 @@ prepare() {
build() { build() {
cd ${pkgname}-${pkgver} cd ${pkgname}-${pkgver}
export CFLAGS+=' -ffat-lto-objects' export CFLAGS+=' -ffat-lto-objects -I/usr/include'
export CXXFLAGS+=' -ffat-lto-objects' export CXXFLAGS+=' -ffat-lto-objects -I/usr/include'
[ "${CARCH}" = 'riscv64' ] && export CXXFLAGS+=' -latomic' [ "${CARCH}" = 'riscv64' ] && export CXXFLAGS+=' -latomic'
cmake -S build/cmake -B build -G Ninja \ cmake -S build/cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DZSTD_ZLIB_SUPPORT=ON \
-DZSTD_LZMA_SUPPORT=ON \ -DZSTD_LZMA_SUPPORT=ON \
-DZSTD_LZ4_SUPPORT=ON \ -DZSTD_LZ4_SUPPORT=ON \
-DZSTD_ZLIB_SUPPORT=ON \
-DZSTD_BUILD_CONTRIB=ON \ -DZSTD_BUILD_CONTRIB=ON \
-DZSTD_BUILD_STATIC=OFF \ -DZSTD_BUILD_STATIC=OFF \
-DZSTD_BUILD_TESTS=ON \ -DZSTD_BUILD_TESTS=ON \
-DZSTD_PROGRAMS_LINK_SHARED=ON -DZSTD_PROGRAMS_LINK_SHARED=ON ${cmake_options[@]}
cmake --build build cmake --build build
} }