librepaper
LOW
maintainer novica
0 votes
scanned 2026-10-24 19:41:06.850237
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
3
pkgname=librepaper
4
pkgver=0.0.50 # renovate: datasource=github-releases depName=LibrePaper/librepaper
5
pkgrel=1
6
pkgdesc="A free collaborative writing, editing, and commenting platform"
7
url="https://github.com/LibrePaper/librepaper"
8
arch=('x86_64' 'aarch64')
9
license=('MIT')
10
depends=(
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
)
25
conflicts=('librepaper-bin')
26
makedepends=('rust' 'nodejs' 'bun' 'mold')
27
options=('!lto' '!debug')
28
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/LibrePaper/librepaper/archive/v${pkgver}.tar.gz")
29
30
prepare() {
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
39
build() {
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
56
package() {
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]
63
Categories=Office;
64
Exec=librepaper-desktop %u
65
StartupWMClass=librepaper-desktop
66
Icon=librepaper-desktop
67
Name=LibrePaper
68
Terminal=false
69
Type=Application
70
MimeType=x-scheme-handler/librepaper
71
EOF
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
76
sha512sums=('19697653a9d62d9355c90d573c5bea51b0e406afa4be73d4f1e84f52cf36fa622c4cda6089a8f12d885bdd4acb8131ec1f1ad87b267abb5a6b066778665924e1')
77
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-24 19:41:06 | Low | 1 |