kgb-git

LOW
maintainer kekmacska 0 votes scanned 2026-09-20 11:33:17.711215
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=kgb-git
2pkgver=1.0b5.r0.g2dcf1fc
3pkgrel=1
4pkgdesc="KGB Archiver is the compression tool with unbelievable high compression rate"
5arch=('any')
6url="https://sourceforge.net/projects/kgbarchiver/"
7license=('GPL-2.0')
8depends=()
9makedepends=('git' 'make')
10source=("git+https://github.com/FS-make-simple/kgb.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 -fno-rtti -fno-exceptions \
28 -fmerge-all-constants -ffunction-sections \
29 -fdata-sections -fvisibility=hidden"
30
31 CLANG_EXTRA_CFLAGS="-fstrict-vtable-pointers -fno-asynchronous-unwind-tables"
32
33 if command -v clang >/dev/null 2>&1; then
34 export CC=clang
35 export CXX=clang++
36 export CFLAGS="$BASE_CFLAGS $CLANG_EXTRA_CFLAGS"
37 export CXXFLAGS="$BASE_CFLAGS $CLANG_EXTRA_CFLAGS"
38 export LDFLAGS="-Wl,--icf=safe -Wl,--gc-sections -Wl,-O3 -flto -fno-plt -fuse-ld=lld"
39 else
40 export CFLAGS="$BASE_CFLAGS"
41 export CXXFLAGS="$BASE_CFLAGS"
42 export LDFLAGS="-Wl,--gc-sections -Wl,-O3 -flto -fno-plt"
43 fi
44
45 make -j"$(nproc)" CXXFLAGS="$CXXFLAGS -DPROGNAME='\"KGB_arch\"'" # DPROGNAME is needed and can only work from here
46}
47
48package() {
49 cd "${pkgname%-*}"
50
51 # Install binary
52 install -Dm755 kgb "$pkgdir/usr/bin/kgb"
53
54 # Install license
55 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
56}
57

Scan history

Scanned at (UTC)SeverityRules
2026-09-20 11:33: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