culo-git
LOW
maintainer kekmacska
0 votes
scanned 2026-08-19 03:41:13.749572
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
# Maintainer: kekmacska
2
3
pkgname=culo-git
4
pkgver=0.r249.g816757a
5
pkgrel=1
6
pkgdesc="ncurses-less terminal editor with nano keybindings. extremely fast and small, mostly compatible with nano syntax highlighting"
7
arch=('x86_64')
8
url="https://github.com/rofl0r/culo"
9
license=('BSD-2-Clause')
10
makedepends=('git' 'make')
11
provides=('culo')
12
13
source=(
14
"culo::git+https://github.com/rofl0r/culo.git"
15
"nano-syntax::git+https://github.com/galenguyer/nano-syntax-highlighting.git"
16
)
17
sha256sums=('SKIP' 'SKIP')
18
19
pkgver() {
20
cd "$srcdir/culo"
21
printf "%s.r%s.g%s" \
22
"0" \
23
"$(git rev-list --count HEAD)" \
24
"$(git rev-parse --short HEAD)"
25
}
26
27
prepare() {
28
cd "$srcdir/culo"
29
30
mkdir -p syntax
31
32
# Copy vendored nano syntax files ONLY if missing
33
for f in "$srcdir/nano-syntax"/*.nanorc; do
34
dest="syntax/$(basename "$f")"
35
[[ -e "$dest" ]] || cp "$f" "$dest"
36
done
37
}
38
39
build() {
40
cd "$srcdir/culo"
41
42
BASE_CFLAGS="-O3 -march=znver4 -mtune=znver4 \
43
-falign-functions=32 -falign-loops=32 \
44
-fno-math-errno -fno-trapping-math -ffast-math \
45
-fno-semantic-interposition \
46
-fomit-frame-pointer -fno-plt \
47
-pipe -flto -Wall -Wno-unused \
48
-fstrict-aliasing -fno-rtti -fno-exceptions \
49
-fstrict-vtable-pointers -fno-asynchronous-unwind-tables \
50
-fmerge-all-constants -ffunction-sections \
51
-fdata-sections -fvisibility=hidden"
52
53
BASE_CXXFLAGS="$BASE_CFLAGS"
54
BASE_LDFLAGS="-Wl,--icf=safe -Wl,--gc-sections -Wl,-O3 -flto -fno-plt"
55
56
# Clang-only flags
57
CLANG_EXTRA_CFLAGS="-fstrict-vtable-pointers -fno-asynchronous-unwind-tables"
58
CLANG_EXTRA_CXXFLAGS="$CLANG_EXTRA_CFLAGS"
59
CLANG_EXTRA_LDFLAGS="-fuse-ld=lld"
60
61
# Detect compiler
62
if command -v clang >/dev/null 2>&1; then
63
export CC=clang
64
export CXX=clang++
65
export CFLAGS="$BASE_CFLAGS $CLANG_EXTRA_CFLAGS"
66
export CXXFLAGS="$BASE_CXXFLAGS $CLANG_EXTRA_CXXFLAGS"
67
export LDFLAGS="$BASE_LDFLAGS $CLANG_EXTRA_LDFLAGS"
68
else
69
export CC=gcc
70
export CXX=g++
71
export CFLAGS="$BASE_CFLAGS"
72
export CXXFLAGS="$BASE_CXXFLAGS"
73
export LDFLAGS="$BASE_LDFLAGS"
74
fi
75
76
make -j$(nproc)
77
}
78
79
package() {
80
cd "$srcdir/culo"
81
82
# executable
83
install -Dm755 culo "$pkgdir/usr/bin/culo"
84
85
# License
86
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
87
}
88
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-19 03:41:13 | Low | 1 |