librepaper

LOW
maintainer novica 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: novica <nnovica@gmail.com>
2
3pkgname=librepaper
4pkgver=0.0.50 # renovate: datasource=github-releases depName=LibrePaper/librepaper
5pkgrel=1
6pkgdesc="A free collaborative writing, editing, and commenting platform"
7url="https://github.com/LibrePaper/librepaper"
8arch=('x86_64' 'aarch64')
9license=('MIT')
10depends=(
11 glibc
12 libgcc
13 gtk3
14 webkit2gtk-4.1
15 libsoup3
16 glib2
17 cairo
18 pango
19 harfbuzz
20 gdk-pixbuf2
21 at-spi2-core
22 dbus
23 hicolor-icon-theme
24)
25conflicts=('librepaper-bin')
26makedepends=('rust' 'nodejs' 'bun' 'mold')
27options=('!lto' '!debug')
28source=("${pkgname}-${pkgver}.tar.gz::https://github.com/LibrePaper/librepaper/archive/v${pkgver}.tar.gz")
29
30prepare() {
31 cd "${srcdir}/${pkgname}-${pkgver}"
32 # Pinned wasm renderers, fonts and the CodeMirror binding, verified against their locks
33 node tools/assets/pins.mjs fetch
34 (cd web && bun install --frozen-lockfile)
35 cargo fetch --locked
36 cargo fetch --locked --manifest-path desktop/Cargo.toml
37}
38
39build() {
40 cd "${srcdir}/${pkgname}-${pkgver}"
41
42 export LIBREPAPER_VERSION="v${pkgver}"
43
44 # The CLI embeds the built browser app
45 (cd web && bun run build)
46 cp README.md web/dist/README.md
47 cargo build --release --locked -p librepaper --bin librepaper
48
49 # tauri-build checks that the bundled CLI is in place
50 local triple
51 triple="$(rustc -vV | sed -n 's/^host: //p')"
52 install -Dm755 target/release/librepaper "desktop/binaries/librepaper-${triple}"
53 cargo build --release --locked --manifest-path desktop/Cargo.toml --features tauri/custom-protocol
54}
55
56package() {
57 cd "${srcdir}/${pkgname}-${pkgver}"
58
59 install -Dm755 target/release/librepaper "${pkgdir}/usr/bin/librepaper"
60 install -Dm755 desktop/target/release/librepaper-desktop "${pkgdir}/usr/bin/librepaper-desktop"
61 install -Dm644 /dev/stdin "${pkgdir}/usr/share/applications/librepaper.desktop" <<EOF
62[Desktop Entry]
63Categories=Office;
64Exec=librepaper-desktop %u
65StartupWMClass=librepaper-desktop
66Icon=librepaper-desktop
67Name=LibrePaper
68Terminal=false
69Type=Application
70MimeType=x-scheme-handler/librepaper
71EOF
72 install -Dm644 desktop/icons/icon.png "${pkgdir}/usr/share/icons/hicolor/320x320/apps/librepaper-desktop.png"
73 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
74}
75
76sha512sums=('19697653a9d62d9355c90d573c5bea51b0e406afa4be73d4f1e84f52cf36fa622c4cda6089a8f12d885bdd4acb8131ec1f1ad87b267abb5a6b066778665924e1')
77

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