logseq-og-bin

LOW
maintainer bigshans 0 votes scanned 2026-08-30 11:42:29.053600
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:
2# Contributor: bigshans <wo199710@hotmail.com>
3
4: ${_install_path:=opt}
5
6_pkgname="logseq-og"
7pkgname="$_pkgname-bin"
8pkgver=1.0.0
9pkgrel=1
10pkgdesc="Privacy-first, open-source platform for knowledge management and collaboration"
11url="https://github.com/logseq/og"
12license=('AGPL-3.0-or-later')
13arch=('x86_64' 'aarch64')
14
15provides=("$_pkgname")
16conflicts=(
17 'logseq'
18 'logseq-appimage'
19 'logseq-desktop'
20 'logseq-desktop-bin'
21 'logseq-desktop-electron-bin'
22 'logseq-desktop-git'
23 'logseq-desktop-nightly-bin'
24)
25
26options=('!debug' '!strip')
27
28install="$_pkgname.install"
29
30_pkgsrc="Logseq-OG-linux-x64"
31[[ "$CARCH" == "aarch64" ]] && _pkgsrc="Logseq-OG-linux-arm64"
32
33_pkgext="zip"
34source_x86_64=("$url/releases/download/$pkgver/Logseq-OG-linux-x64-$pkgver.$_pkgext")
35source_aarch64=("$url/releases/download/$pkgver/Logseq-OG-linux-arm64-$pkgver.$_pkgext")
36
37sha256sums_x86_64=('eef58b152b48fbf12630c67c53b0f9083d67b406c2a9005eac5455f9539e1e79')
38sha256sums_aarch64=('124761276437d3a838e1bc28a0f2914fc516eedc92813232cf1f39160f0adcae')
39
40# appimage - missing icon
41if [[ "${_pkgext::1}" == "A" ]]; then
42 source+=("$_pkgname-$pkgver.png"::"$url/raw/$pkgver/resources/icons/logseq.png")
43fi
44
45prepare() {
46 # appimage - extract
47 if [[ "${_pkgext::1}" == "A" ]]; then
48 chmod +x "$_pkgsrc-$pkgver.$_pkgext"
49 "./$_pkgsrc-$pkgver.$_pkgext" --appimage-extract
50 ln -sf "squashfs-root" "$_pkgsrc"
51 fi
52}
53
54package() {
55 depends=(
56 alsa-lib
57 at-spi2-core
58 bash
59 cairo
60 curl
61 dbus
62 expat
63 glib2
64 gtk3
65 libcups
66 libpulse
67 libx11
68 libxcb
69 libxcomposite
70 libxdamage
71 libxext
72 libxfixes
73 libxkbcommon
74 libxrandr
75 mesa
76 nodejs
77 nspr
78 nss
79 pango
80 perl
81 systemd-libs
82 zlib
83 )
84
85 if [[ "${_pkgext::1}" == "A" ]]; then
86 # appimage - icons
87 install -Dm644 "$_pkgname.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
88
89 # appimage - remove unneeded
90 rm -- "$_pkgsrc/AppRun"
91 rm -- "$_pkgsrc/Logseq.desktop"
92 rm -- "$_pkgsrc/Logseq.png"
93 else
94 # zip - icons
95 install -Dm644 "$_pkgsrc/resources/app/icon.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
96 fi
97
98 # main files
99 mkdir -pm755 "$pkgdir/$_install_path/$_pkgname"
100 cp -a "$_pkgsrc"/* "$pkgdir/$_install_path/$_pkgname/"
101
102 # launcher
103 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$_pkgname.desktop" << END
104[Desktop Entry]
105Type=Application
106Name=Logseq OG
107Comment=$pkgdesc
108Exec=$_pkgname %u
109Icon=$_pkgname
110Terminal=false
111StartupNotify=true
112Categories=Office;
113MimeType=x-scheme-handler/logseq;
114StartupWMClass=Logseq OG
115END
116
117 # script
118 local _electron_version=$(strings "$pkgdir/$_install_path/$_pkgname/Logseq-OG" | grep -Pom1 'Electron/[0-9\.]+')
119 local _warning_eol="${_electron_version:+Logseq OG uses ${_electron_version}. To check whether this version of Electron still receives security updates, see https://endoflife.date/electron}"
120
121 printf 'WARNING: %s\n' "${_warning_eol:-see https://endoflife.date/electron}"
122
123 install -Dm755 /dev/stdin "$pkgdir/usr/bin/$_pkgname" << END
124#!/usr/bin/env bash
125
126name=$_pkgname
127flags_file="\${XDG_CONFIG_HOME:-\$HOME/.config}/\${name}-flags.conf"
128
129lines=()
130if [[ -f "\${flags_file}" ]]; then
131 mapfile -t lines < "\${flags_file}"
132fi
133
134flags=()
135for line in "\${lines[@]}"; do
136 if [[ ! "\${line}" =~ ^[[:space:]]*#.* ]] && [[ -n "\${line}" ]]; then
137 flags+=("\${line}")
138 fi
139done
140
141: \${ELECTRON_IS_DEV:=0}
142export ELECTRON_IS_DEV
143: \${ELECTRON_FORCE_IS_PACKAGED:=true}
144export ELECTRON_FORCE_IS_PACKAGED
145
146printf 'WARNING: %s\n' "${_warning_eol:-see https://endoflife.date/electron}"
147
148exec "/$_install_path/$_pkgname/Logseq-OG" "\${flags[@]}" "\$@"
149END
150
151 # permissions
152 chmod -R u=rwX,go=rX "$pkgdir"
153}
154

Scan history

Scanned at (UTC)SeverityRules
2026-08-30 11:42:29 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