typewriter-nocturne-bin

LOW
maintainer fufu1437 0 votes scanned 2026-11-02 12:02:29.906667
View on AUR
Why flagged

The package installs a prebuilt AppImage from the project's official GitHub releases, which is normal for Electron apps; the source is trustworthy and the build process is transparent, though the AppImage itself is not rebuilt from source.

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.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package installs a prebuilt AppImage from the project's official GitHub releases, which is normal for Electron apps; the source is trustworthy and the build process is transparent, though the AppImage itself is not rebuilt from source.

PKGBUILD

1# Maintainer: fufu1437 <mono2681 at outlook dot com>
2
3pkgname=typewriter-nocturne-bin
4pkgver=1.0.0
5pkgrel=1
6pkgdesc="A literary, typewriter-inspired terminal based on Hyper"
7arch=('x86_64')
8url="https://github.com/Chaosnap/Typewriter-Nocturne"
9license=('MIT')
10depends=(
11 'alsa-lib'
12 'at-spi2-core'
13 'cairo'
14 'dbus'
15 'expat'
16 'glib2'
17 'glibc'
18 'gtk3'
19 'hicolor-icon-theme'
20 'libcups'
21 'libdrm'
22 'libgcc'
23 'libx11'
24 'libxcb'
25 'libxcomposite'
26 'libxdamage'
27 'libxext'
28 'libxfixes'
29 'libxkbcommon'
30 'libxrandr'
31 'mesa'
32 'nss'
33 'pango'
34)
35optdepends=(
36 'libappindicator: system tray icon support'
37 'libnotify: desktop notifications'
38 'libxss: screen saver inhibition while the terminal is active'
39 'libxtst: XTest extension support'
40)
41provides=('typewriter-nocturne')
42conflicts=('typewriter-nocturne' 'typewriter-nocturne-git')
43options=('!strip' '!debug')
44source=("$pkgname-$pkgver.AppImage::https://github.com/Chaosnap/Typewriter-Nocturne/releases/download/v$pkgver/Typewriter-Nocturne-$pkgver-linux-x86_64.AppImage"
45 "LICENSE::https://github.com/Chaosnap/Typewriter-Nocturne/raw/v$pkgver/LICENSE")
46sha256sums=('4dfdd79d580610d5448da3859b2ed1e50bd72d2a0a778e6867cf9ac7aefad56b'
47 '703a8623a47d9c3aa9d4f9fc08f29b9e51aeabd106b13cb18ec20f96a11b919c')
48
49prepare() {
50 chmod +x "$srcdir/$pkgname-$pkgver.AppImage"
51 "$srcdir/$pkgname-$pkgver.AppImage" --appimage-extract >/dev/null
52}
53
54package() {
55 local appdir="$pkgdir/usr/lib/$pkgname"
56
57 # Electron 应用本体(预编译二进制与资源)
58 install -d "$appdir"
59 cp -a --no-preserve=ownership "$srcdir/squashfs-root/." "$appdir/"
60
61 # AppImage 运行器与为旧发行版捆绑的私有库:Arch 上由系统包提供
62 rm -f "$appdir/AppRun" \
63 "$appdir/.DirIcon" \
64 "$appdir/typewriter-nocturne.desktop" \
65 "$appdir/typewriter-nocturne.png"
66 rm -rf "$appdir/usr"
67
68 # 清理构建环境遗留:Windows 专用源码与构建机绝对路径符号链接
69 rm -rf "$appdir/resources/app.asar.unpacked/node_modules/node-pty/deps/winpty"
70 find "$appdir" -type l -lname '*hostedtoolcache*' -delete
71 find "$appdir" -type d -name node_gyp_bins -empty -delete
72
73 # 内置 yarn 由 Electron 的 Node 运行,去掉会误导依赖检测的 shebang
74 sed -i '1{/^#!\/usr\/bin\/env node$/d}' "$appdir/resources/bin/yarn-standalone.js"
75
76 # 命令行入口
77 install -d "$pkgdir/usr/bin"
78 ln -s "../lib/$pkgname/typewriter-nocturne" "$pkgdir/usr/bin/typewriter-nocturne"
79 ln -s "../lib/$pkgname/resources/bin/nocturne" "$pkgdir/usr/bin/nocturne"
80
81 # 桌面入口
82 install -d "$pkgdir/usr/share/applications"
83 cat > "$pkgdir/usr/share/applications/$pkgname.desktop" <<'EOF'
84[Desktop Entry]
85Type=Application
86Name=Typewriter Nocturne
87GenericName=Terminal Emulator
88Comment=A literary, typewriter-inspired terminal based on Hyper
89Exec=typewriter-nocturne %U
90Icon=typewriter-nocturne
91Terminal=false
92Categories=TerminalEmulator;System;
93MimeType=x-scheme-handler/ssh;
94StartupWMClass=Typewriter Nocturne
95EOF
96
97 # 图标
98 install -Dm644 "$srcdir/squashfs-root/usr/share/icons/hicolor/0x0/apps/typewriter-nocturne.png" \
99 "$pkgdir/usr/share/icons/hicolor/1024x1024/apps/typewriter-nocturne.png"
100
101 # 许可证
102 install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
103}
104

Scan history

Scanned at (UTC)SeverityRules
2026-11-02 12:02:29 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion