smallz4-git
LOW
maintainer kekmacska
0 votes
scanned 2026-09-20 21:33:20.035927
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
pkgname=smallz4-git
2
pkgver=1.5.r2.9777a1d
3
pkgrel=1
4
pkgdesc="Extremely small C++ compressor with optimal parsing, fully compatible with LZ4 by Yann Collet"
5
arch=('any')
6
url="https://github.com/skandau/smallz4"
7
license=('MIT')
8
depends=()
9
makedepends=('git')
10
source=("git+$url.git")
11
md5sums=('SKIP')
12
13
pkgver() {
14
cd "${pkgname%-*}"
15
echo "1.5.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
16
}
17
18
build() {
19
cd "${pkgname%-*}"
20
21
if command -v clang++ >/dev/null 2>&1; then
22
clang++ \
23
-O3 -march=native -mtune=native \
24
-falign-functions=32 -falign-loops=32 \
25
-fno-math-errno -fno-trapping-math \
26
-fno-semantic-interposition \
27
-fomit-frame-pointer -fno-plt \
28
-pipe -flto -Wall -Wno-unused \
29
-fstrict-aliasing -fno-rtti -fno-exceptions \
30
-fmerge-all-constants -ffunction-sections \
31
-fdata-sections -fvisibility=hidden \
32
-fstrict-vtable-pointers \
33
-fno-asynchronous-unwind-tables \
34
smallz4.cpp -o smallz4 \
35
-Wl,--icf=safe \
36
-Wl,--gc-sections \
37
-Wl,-O3 \
38
-flto \
39
-fno-plt \
40
-fuse-ld=lld
41
else
42
g++ \
43
-O3 -march=native -mtune=native \
44
-falign-functions=32 -falign-loops=32 \
45
-fno-math-errno -fno-trapping-math \
46
-fno-semantic-interposition \
47
-fomit-frame-pointer -fno-plt \
48
-pipe -flto -Wall -Wno-unused \
49
-fstrict-aliasing -fno-rtti -fno-exceptions \
50
-fmerge-all-constants -ffunction-sections \
51
-fdata-sections -fvisibility=hidden \
52
smallz4.cpp -o smallz4 \
53
-Wl,--gc-sections \
54
-Wl,-O3 \
55
-flto \
56
-fno-plt
57
fi
58
}
59
60
package() {
61
cd "${pkgname%-*}"
62
63
# Install binary
64
install -Dm755 smallz4 "$pkgdir/usr/bin/smallz4"
65
66
# Install license
67
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
68
}
69
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-20 21:33:20 | Low | 1 |