textdichter-git

LOW
maintainer kekmacska 0 votes scanned 2026-09-28 17:21:20.064738
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=textdichter-git
4pkgver=1.0.0.r1.g9255eea
5pkgrel=1
6pkgdesc='A light, simple and clean Markdown editor for the Linux desktop'
7arch=('any')
8license=('MPL-2.0')
9url='https://github.com/moloo4ni/textdichter'
10source=('git+https://github.com/moloo4ni/textdichter.git')
11makedepends=(cmake make svgo pkgconf git vulkan-headers)
12depends=(qt6-base libglvnd cmark)
13provides=(textdichter)
14sha256sums=('SKIP')
15
16pkgver() {
17 cd "${pkgname%-*}"
18 git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
19}
20
21prepare() {
22 cd "$srcdir/${pkgname%-*}"
23
24 svgo . -r --multipass
25}
26
27build() {
28 cd "${pkgname%-*}"
29
30 BASE_CFLAGS="-O3 -march=native -mtune=native \
31 -falign-functions=32 -falign-loops=32 \
32 -fno-math-errno -fno-trapping-math \
33 -fno-semantic-interposition \
34 -fomit-frame-pointer -fno-plt \
35 -pipe -flto -Wall -Wno-unused \
36 -fstrict-aliasing -fno-rtti -fno-exceptions \
37 -fmerge-all-constants -ffunction-sections \
38 -fdata-sections -fvisibility=hidden"
39
40 BASE_CXXFLAGS="$BASE_CFLAGS"
41 BASE_LDFLAGS="-Wl,--icf=safe -Wl,--gc-sections -Wl,-O3 -flto -fno-plt"
42
43 # Clang-only flags
44 CLANG_EXTRA_CFLAGS="-fstrict-vtable-pointers -fno-asynchronous-unwind-tables"
45 CLANG_EXTRA_CXXFLAGS="$CLANG_EXTRA_CFLAGS"
46 CLANG_EXTRA_LDFLAGS="-fuse-ld=lld"
47
48 # Detect compiler
49 if command -v clang >/dev/null 2>&1; then
50 export CC=clang
51 export CXX=clang++
52 export CFLAGS="$BASE_CFLAGS $CLANG_EXTRA_CFLAGS"
53 export CXXFLAGS="$BASE_CXXFLAGS $CLANG_EXTRA_CXXFLAGS"
54 export LDFLAGS="$BASE_LDFLAGS $CLANG_EXTRA_LDFLAGS"
55 else
56 export CC=gcc
57 export CXX=g++
58 export CFLAGS="$BASE_CFLAGS"
59 export CXXFLAGS="$BASE_CXXFLAGS"
60 export LDFLAGS="$BASE_LDFLAGS"
61 fi
62
63 cmake -B build -DCMAKE_BUILD_TYPE=Release \
64 -DCMAKE_INSTALL_PREFIX=/usr \
65 -DCMAKE_INSTALL_MANDIR=share/man \
66 -DCMAKE_INSTALL_DATAROOTDIR=share \
67 -DCMAKE_INSTALL_LIBDIR=lib \
68 -DCMAKE_INSTALL_BINDIR=bin
69
70 cmake --build build --parallel "$(nproc)"
71}
72
73package(){
74 cd "$srcdir/${pkgname%-*}"
75
76 DESTDIR="$pkgdir" cmake --install build
77
78 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
79}
80

Scan history

Scanned at (UTC)SeverityRules
2026-09-28 17:21:20 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