kgb-git
LOW
maintainer kekmacska
0 votes
scanned 2026-09-20 11:33:17.711215
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=kgb-git
2
pkgver=1.0b5.r0.g2dcf1fc
3
pkgrel=1
4
pkgdesc="KGB Archiver is the compression tool with unbelievable high compression rate"
5
arch=('any')
6
url="https://sourceforge.net/projects/kgbarchiver/"
7
license=('GPL-2.0')
8
depends=()
9
makedepends=('git' 'make')
10
source=("git+https://github.com/FS-make-simple/kgb.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 -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
48
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-20 11:33:17 | Low | 1 |