x3-compressor-git
LOW
maintainer kekmacska
0 votes
scanned 2026-09-28 15:21:17.813621
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=x3-compressor-git
2
pkgver=2.r29.g8141560
3
pkgrel=1
4
pkgdesc="Experimental dictionary-based data compressor"
5
arch=('any')
6
url="https://github.com/xbarin02/x3-compressor"
7
license=('MIT')
8
depends=()
9
makedepends=('git' 'make')
10
source=("git+$url.git")
11
md5sums=('SKIP')
12
13
pkgver() {
14
cd "${pkgname%-*}"
15
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
16
}
17
18
build() {
19
cd "${pkgname%-*}"
20
21
BASE_CFLAGS="-O3 -march=native -mtune=native \
22
-falign-functions=32 -falign-loops=32 \
23
-fno-math-errno -fno-trapping-math \
24
-fno-semantic-interposition \
25
-fomit-frame-pointer -fno-plt \
26
-pipe -flto -Wall -Wno-unused \
27
-fstrict-aliasing \
28
-fmerge-all-constants -ffunction-sections \
29
-fdata-sections -fvisibility=hidden"
30
31
BASE_CXXFLAGS="$BASE_CFLAGS"
32
BASE_LDFLAGS="-Wl,--icf=safe -Wl,--gc-sections -Wl,-O3 -flto -fno-plt"
33
34
# Clang-only flags
35
CLANG_EXTRA_CFLAGS="-fstrict-vtable-pointers -fno-asynchronous-unwind-tables"
36
CLANG_EXTRA_CXXFLAGS="$CLANG_EXTRA_CFLAGS"
37
CLANG_EXTRA_LDFLAGS="-fuse-ld=lld"
38
39
# Detect compiler
40
if command -v clang >/dev/null 2>&1; then
41
export CC=clang
42
export CXX=clang++
43
export CFLAGS="$BASE_CFLAGS $CLANG_EXTRA_CFLAGS"
44
export CXXFLAGS="$BASE_CXXFLAGS $CLANG_EXTRA_CXXFLAGS"
45
export LDFLAGS="$BASE_LDFLAGS $CLANG_EXTRA_LDFLAGS"
46
else
47
export CC=gcc
48
export CXX=g++
49
export CFLAGS="$BASE_CFLAGS"
50
export CXXFLAGS="$BASE_CXXFLAGS"
51
export LDFLAGS="$BASE_LDFLAGS"
52
fi
53
54
make -j$(nproc)
55
}
56
57
package() {
58
cd "${pkgname%-*}"
59
60
# Install binary
61
install -Dm755 x3 "$pkgdir/usr/bin/x3"
62
63
# Install license
64
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
65
}
66
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-28 15:21:17 | Low | 1 |