culo-git

LOW
maintainer kekmacska 0 votes scanned 2026-08-19 03:41:13.749572
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

1# Maintainer: kekmacska
2
3pkgname=culo-git
4pkgver=0.r249.g816757a
5pkgrel=1
6pkgdesc="ncurses-less terminal editor with nano keybindings. extremely fast and small, mostly compatible with nano syntax highlighting"
7arch=('x86_64')
8url="https://github.com/rofl0r/culo"
9license=('BSD-2-Clause')
10makedepends=('git' 'make')
11provides=('culo')
12
13source=(
14 "culo::git+https://github.com/rofl0r/culo.git"
15 "nano-syntax::git+https://github.com/galenguyer/nano-syntax-highlighting.git"
16)
17sha256sums=('SKIP' 'SKIP')
18
19pkgver() {
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
27prepare() {
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
39build() {
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
79package() {
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)SeverityRules
2026-08-19 03:41:13 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