smallz4-git

LOW
maintainer kekmacska 0 votes scanned 2026-09-20 21:33:20.035927
View on AUR
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

1pkgname=smallz4-git
2pkgver=1.5.r2.9777a1d
3pkgrel=1
4pkgdesc="Extremely small C++ compressor with optimal parsing, fully compatible with LZ4 by Yann Collet"
5arch=('any')
6url="https://github.com/skandau/smallz4"
7license=('MIT')
8depends=()
9makedepends=('git')
10source=("git+$url.git")
11md5sums=('SKIP')
12
13pkgver() {
14 cd "${pkgname%-*}"
15 echo "1.5.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
16}
17
18build() {
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
60package() {
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)SeverityRules
2026-09-20 21:33:20 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion