leht-git

LOW
maintainer kekmacska 0 votes scanned 2026-09-28 17:21:20.064738
View on AUR
Why flagged

Package builds from a public git repository of a legitimate project; the low severity is due to few votes and recent upload, but the source is verifiable and no malicious activity is present.

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.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): Package builds from a public git repository of a legitimate project; the low severity is due to few votes and recent upload, but the source is verifiable and no malicious activity is present.

PKGBUILD

1# Maintainer: kekmacska
2
3pkgname=leht-git
4pkgver=0.1.0.r98.f337c02
5pkgrel=1
6pkgdesc='Fast, desktop-environment-neutral PDF toolkit for Linux'
7arch=('any')
8license=('AGPL-3.0')
9url='https://github.com/mlkonrad/leht'
10source=('git+https://github.com/mlkonrad/leht.git')
11makedepends=(cmake make svgo pkgconf git libseccomp)
12depends=(qt6-base 'openssl>=3.2' libp11-kit libglvnd libmupdf tesseract libarchive curl)
13provides=(leht)
14sha256sums=('SKIP')
15
16pkgver() {
17 cd "${pkgname%-*}"
18 cmake_version=$(sed -nE 's/^[[:space:]]*VERSION[[:space:]]+([0-9]+(\.[0-9]+)*)[[:space:]]*$/\1/p' CMakeLists.txt)
19 echo "$cmake_version.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
20}
21
22prepare() {
23 cd "$srcdir/${pkgname%-*}"
24
25 svgo . -r --multipass
26}
27
28build() {
29 cd "${pkgname%-*}"
30
31 BASE_CFLAGS="-O3 -march=native -mtune=native \
32 -falign-functions=32 -falign-loops=32 \
33 -fno-math-errno -fno-trapping-math \
34 -fno-semantic-interposition \
35 -fomit-frame-pointer -fno-plt \
36 -pipe -flto -Wall -Wno-unused \
37 -fstrict-aliasing -fno-rtti \
38 -fmerge-all-constants -ffunction-sections \
39 -fdata-sections -fvisibility=hidden"
40
41 BASE_CXXFLAGS="$BASE_CFLAGS"
42 BASE_LDFLAGS="-Wl,--icf=safe -Wl,--gc-sections -Wl,-O3 -flto -fno-plt"
43
44 # Clang-only flags
45 CLANG_EXTRA_CFLAGS="-fstrict-vtable-pointers -fno-asynchronous-unwind-tables"
46 CLANG_EXTRA_CXXFLAGS="$CLANG_EXTRA_CFLAGS"
47 CLANG_EXTRA_LDFLAGS="-fuse-ld=lld"
48
49 # Detect compiler
50 if command -v clang >/dev/null 2>&1; then
51 export CC=clang
52 export CXX=clang++
53 export CFLAGS="$BASE_CFLAGS $CLANG_EXTRA_CFLAGS"
54 export CXXFLAGS="$BASE_CXXFLAGS $CLANG_EXTRA_CXXFLAGS"
55 export LDFLAGS="$BASE_LDFLAGS $CLANG_EXTRA_LDFLAGS"
56 else
57 export CC=gcc
58 export CXX=g++
59 export CFLAGS="$BASE_CFLAGS"
60 export CXXFLAGS="$BASE_CXXFLAGS"
61 export LDFLAGS="$BASE_LDFLAGS"
62 fi
63
64 cmake -B build -DCMAKE_BUILD_TYPE=Release \
65 -DCMAKE_INSTALL_PREFIX=/usr \
66 -DCMAKE_INSTALL_MANDIR=share/man \
67 -DCMAKE_INSTALL_DATAROOTDIR=share \
68 -DCMAKE_INSTALL_LIBDIR=lib \
69 -DCMAKE_INSTALL_BINDIR=bin \
70 -DLEHT_BUILD_UI=ON
71
72 cmake --build build --parallel "$(nproc)"
73}
74
75package(){
76 cd "$srcdir/${pkgname%-*}"
77
78 DESTDIR="$pkgdir" cmake --install build
79
80 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
81}
82

Scan history

Scanned at (UTC)SeverityRules
2026-09-28 17:21:20 Low 2

Report a package

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

0 / 4000
Your suggestion