scratch-notes

LOW
maintainer imm 0 votes scanned 2026-09-06 13:11:32.219503
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: imm <40186+imm@users.noreply.github.com>
2
3pkgname=scratch-notes
4pkgver=1.0.0
5pkgrel=1
6pkgdesc='Minimalist, offline-first markdown note-taking app'
7arch=('x86_64')
8url='https://github.com/erictli/scratch'
9license=('MIT')
10depends=(
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)
21makedepends=('cargo' 'npm')
22options=('!lto')
23source=("scratch-$pkgver.tar.gz::https://github.com/erictli/scratch/archive/refs/tags/v$pkgver.tar.gz")
24b2sums=('996dda6e36bca4a734ada0761a340d46d9afed38c020816310653b29bf070f9f89ac95b7ca72804c3ec5629d431a559f8ef6be4f107f8631fefe1db8066a055a')
25
26build() {
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
38package() {
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]
57Type=Application
58Name=Scratch
59GenericName=Markdown Notes
60Comment=Minimalist, offline-first markdown note-taking app
61Exec=scratch-notes %F
62Icon=scratch-notes
63Terminal=false
64Categories=Office;TextEditor;
65Keywords=notes;markdown;editor;
66MimeType=text/markdown;
67StartupWMClass=scratch-notes
68StartupNotify=true
69EOF
70 install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
71}
72

Scan history

Scanned at (UTC)SeverityRules
2026-09-06 13:11:32 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