scribe-git

LOW
maintainer somepaulo 0 votes scanned 2026-10-24 19:41:06.850237
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: Paulo Fino <somepaulo@duck.com>
2
3pkgname=scribe-git
4_pkgname=scribe
5pkgver=0.3.20.r0.g8fa7390
6pkgrel=1
7pkgdesc='A native GNOME Markdown editor that renders your document as you type (development version)'
8arch=('x86_64')
9url='https://github.com/gnacho/scribe'
10license=('AGPL-3.0-or-later')
11depends=(
12 'cairo'
13 'enchant'
14 'gdk-pixbuf2'
15 'glib2'
16 'glibc'
17 'graphene'
18 'gtk4>=4.14'
19 'gtksourceview5>=5.10'
20 'hicolor-icon-theme'
21 'libadwaita>=1.5'
22 'libgcc'
23 'pango'
24)
25makedepends=('cargo' 'gettext' 'git' 'pkgconf')
26provides=("scribe=$pkgver")
27conflicts=('scribe' 'scribe-bin')
28
29source=("${_pkgname}::git+https://github.com/gnacho/scribe.git")
30sha256sums=('SKIP')
31
32pkgver() {
33 cd "$srcdir/$_pkgname"
34 git describe --long --tags --match 'v[0-9]*' |
35 sed -E 's/^v//; s/-([0-9]+)-g([0-9a-f]+)$/.r\1.g\2/'
36}
37
38prepare() {
39 cd "$srcdir/$_pkgname"
40 export CARGO_HOME="$srcdir/cargo-home"
41 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
42}
43
44build() {
45 cd "$srcdir/$_pkgname"
46 export CARGO_HOME="$srcdir/cargo-home"
47 export CARGO_TARGET_DIR="$srcdir/target"
48 cargo build --release --frozen
49
50 local po lang
51 for po in po/*.po; do
52 lang=${po##*/}
53 lang=${lang%.po}
54 install -dm755 "$srcdir/locale/$lang/LC_MESSAGES"
55 msgfmt --check "$po" -o "$srcdir/locale/$lang/LC_MESSAGES/scribe.mo"
56 done
57}
58
59package() {
60 cd "$srcdir/$_pkgname"
61 local icon po lang
62
63 install -Dm755 "$srcdir/target/release/scribe" "$pkgdir/usr/bin/scribe"
64 install -Dm644 data/io.github.gnacho.Scribe.desktop \
65 "$pkgdir/usr/share/applications/io.github.gnacho.Scribe.desktop"
66 install -Dm644 data/io.github.gnacho.Scribe.metainfo.xml \
67 "$pkgdir/usr/share/metainfo/io.github.gnacho.Scribe.metainfo.xml"
68 install -Dm644 data/io.github.gnacho.Scribe.gschema.xml \
69 "$pkgdir/usr/share/glib-2.0/schemas/io.github.gnacho.Scribe.gschema.xml"
70
71 # Include the application and action icons, including symbolic/apps.
72 # Never install a private hicolor index.theme over the system theme.
73 for icon in data/icons/hicolor/*/*/*.svg; do
74 install -Dm644 "$icon" \
75 "$pkgdir/usr/share/icons/hicolor/${icon#data/icons/hicolor/}"
76 done
77
78 for po in po/*.po; do
79 lang=${po##*/}
80 lang=${lang%.po}
81 install -Dm644 "$srcdir/locale/$lang/LC_MESSAGES/scribe.mo" \
82 "$pkgdir/usr/share/locale/$lang/LC_MESSAGES/scribe.mo"
83 done
84
85 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
86}
87

Scan history

Scanned at (UTC)SeverityRules
2026-10-24 19:41:06 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