scratch-notes
LOW
maintainer imm
0 votes
scanned 2026-09-06 13:11:32.219503
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: imm <40186+imm@users.noreply.github.com>
2
3
pkgname=scratch-notes
4
pkgver=1.0.0
5
pkgrel=1
6
pkgdesc='Minimalist, offline-first markdown note-taking app'
7
arch=('x86_64')
8
url='https://github.com/erictli/scratch'
9
license=('MIT')
10
depends=(
11
'cairo'
12
'gdk-pixbuf2'
13
'gcc-libs'
14
'glib2'
15
'glibc'
16
'gtk3'
17
'hicolor-icon-theme'
18
'libsoup3'
19
'webkit2gtk-4.1'
20
)
21
makedepends=('cargo' 'npm')
22
options=('!lto')
23
source=("scratch-$pkgver.tar.gz::https://github.com/erictli/scratch/archive/refs/tags/v$pkgver.tar.gz")
24
b2sums=('996dda6e36bca4a734ada0761a340d46d9afed38c020816310653b29bf070f9f89ac95b7ca72804c3ec5629d431a559f8ef6be4f107f8631fefe1db8066a055a')
25
26
build() {
27
cd "scratch-$pkgver"
28
29
npm ci
30
npm run build
31
32
cd src-tauri
33
# custom-protocol embeds the frontend assets; without it the app runs in
34
# dev mode and the webview tries to load http://localhost:1420
35
cargo build --release --locked --features tauri/custom-protocol
36
}
37
38
package() {
39
cd "scratch-$pkgver"
40
41
install -Dm755 src-tauri/target/release/Scratch "$pkgdir/usr/bin/$pkgname"
42
43
cd src-tauri/icons
44
install -Dm644 32x32.png "$pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.png"
45
install -Dm644 64x64.png "$pkgdir/usr/share/icons/hicolor/64x64/apps/$pkgname.png"
46
install -Dm644 128x128.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/$pkgname.png"
47
install -Dm644 '128x128@2x.png' "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
48
install -Dm644 icon.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
49
50
cd ../..
51
52
# Upstream declares MIT in the README but ships no LICENSE file
53
install -Dm644 README.md "$pkgdir/usr/share/licenses/$pkgname/README"
54
55
cat > "$pkgname.desktop" <<EOF
56
[Desktop Entry]
57
Type=Application
58
Name=Scratch
59
GenericName=Markdown Notes
60
Comment=Minimalist, offline-first markdown note-taking app
61
Exec=scratch-notes %F
62
Icon=scratch-notes
63
Terminal=false
64
Categories=Office;TextEditor;
65
Keywords=notes;markdown;editor;
66
MimeType=text/markdown;
67
StartupWMClass=scratch-notes
68
StartupNotify=true
69
EOF
70
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
71
}
72
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-06 13:11:32 | Low | 1 |