x3-compressor-git

LOW
maintainer kekmacska 0 votes scanned 2026-09-28 15:21:17.813621
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=x3-compressor-git
2pkgver=2.r29.g8141560
3pkgrel=1
4pkgdesc="Experimental dictionary-based data compressor"
5arch=('any')
6url="https://github.com/xbarin02/x3-compressor"
7license=('MIT')
8depends=()
9makedepends=('git' 'make')
10source=("git+$url.git")
11md5sums=('SKIP')
12
13pkgver() {
14 cd "${pkgname%-*}"
15 git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
16}
17
18build() {
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
57package() {
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)SeverityRules
2026-09-28 15:21:17 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