zstd-x64v4
LOW
maintainer antonio_breno
0 votes
scanned 2026-10-24 19:41:06.850237
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Antonio Breno <coisasaletaorias@gmail.com>
2
pkgname=zstd-x64v4
3
pkgver=1.5.7
4
pkgrel=3
5
pkgdesc='Zstandard - Fast real-time compression algorithm (x86-64-v4)'
6
url='https://facebook.github.io/zstd/'
7
arch=(x86_64)
8
license=(BSD-3-Clause GPL-2.0-only)
9
10
depends=(glibc libgcc libstdc++ zlib xz lz4)
11
makedepends=(cmake gtest ninja)
12
13
provides=("zstd=${pkgver}" libzstd.so)
14
conflicts=(zstd)
15
16
source=(
17
https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.zst{,.sig}
18
https://github.com/facebook/zstd/commit/6af3842118ea5325480b403213b2a9fbed3d3d74.patch
19
)
20
sha256sums=(
21
5b331d961d6989dc21bb03397fc7a2a4d86bc65a14adc5ffbbce050354e30fd2
22
SKIP
23
7c07be222d45718b81fb16f97e611adfeb24efa0712ca77fb1e08f4c67803ec3
24
)
25
b2sums=(
26
20df0493d9d960b8fc98f7cac7630f84dae6226bd906364ab9c9ce7dfb2be44a303fd077e4264979f3ee92efd59072d63c4bb4ae7b65c52f6ce0153513088837
27
SKIP
28
02e472b01ead30ebc703f64d35ccbfe1db8a9eae6b15a3690e6e5092c6b8cdfaaca585b31b965d94eea7da04cebd6bcca7f5c8bbf9e2c2e84b4acd7f3ce54e5d
29
)
30
validpgpkeys=(4EF4AC63455FC9F4545D9B7DEF8FE99528B52FFD)
31
32
prepare() {
33
cd zstd-${pkgver}
34
sed '/build static library to build tests/d' -i build/cmake/CMakeLists.txt
35
sed 's/libzstd_static/libzstd_shared/g' -i build/cmake/tests/CMakeLists.txt
36
patch -Np1 -i ../6af3842118ea5325480b403213b2a9fbed3d3d74.patch
37
}
38
39
build() {
40
cd zstd-${pkgver}
41
export CFLAGS+=" -march=x86-64-v4 -ffat-lto-objects"
42
export CXXFLAGS+=" -march=x86-64-v4 -ffat-lto-objects"
43
44
cmake -S build/cmake -B build -G Ninja \
45
-DCMAKE_BUILD_TYPE=None \
46
-DCMAKE_INSTALL_PREFIX=/usr \
47
-DZSTD_ZLIB_SUPPORT=ON \
48
-DZSTD_LZMA_SUPPORT=ON \
49
-DZSTD_LZ4_SUPPORT=ON \
50
-DZSTD_BUILD_CONTRIB=ON \
51
-DZSTD_BUILD_STATIC=OFF \
52
-DZSTD_BUILD_TESTS=ON \
53
-DZSTD_PROGRAMS_LINK_SHARED=ON
54
cmake --build build
55
}
56
57
check() {
58
cd zstd-${pkgver}
59
LD_LIBRARY_PATH="$(pwd)/build/lib" ctest -VV --test-dir build
60
}
61
62
package() {
63
cd zstd-${pkgver}
64
DESTDIR="${pkgdir}" cmake --install build
65
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
66
}
67
68
# vim: ts=2 sw=2 et:
69
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-24 19:41:06 | Low | 1 |