textdichter-git
LOW
maintainer kekmacska
0 votes
scanned 2026-09-28 17:21:20.064738
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=textdichter-git
4
pkgver=1.0.0.r1.g9255eea
5
pkgrel=1
6
pkgdesc='A light, simple and clean Markdown editor for the Linux desktop'
7
arch=('any')
8
license=('MPL-2.0')
9
url='https://github.com/moloo4ni/textdichter'
10
source=('git+https://github.com/moloo4ni/textdichter.git')
11
makedepends=(cmake make svgo pkgconf git vulkan-headers)
12
depends=(qt6-base libglvnd cmark)
13
provides=(textdichter)
14
sha256sums=('SKIP')
15
16
pkgver() {
17
cd "${pkgname%-*}"
18
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
19
}
20
21
prepare() {
22
cd "$srcdir/${pkgname%-*}"
23
24
svgo . -r --multipass
25
}
26
27
build() {
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
73
package(){
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) | Severity | Rules |
|---|---|---|
| 2026-09-28 17:21:20 | Low | 1 |