moarchy-store-git
LOW
maintainer simonschubert
0 votes
scanned 2026-09-05 09:59:47.702300
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: Simon Schubert <simon@librem.one>
2
pkgname=moarchy-store-git
3
_pkgname=moarchy-store
4
pkgver=0.1.0
5
pkgrel=1
6
pkgdesc="Curated store of Linux phone apps that actually fit a small screen"
7
arch=('any')
8
url="https://github.com/SimonSchubert/moarchy-store"
9
license=('MIT')
10
# Pure Python, so arch=any. The GUI stack is all runtime, nothing is compiled.
11
depends=('python' 'python-gobject' 'gtk4' 'libadwaita' 'polkit' 'pacman')
12
makedepends=('git')
13
provides=("$_pkgname")
14
conflicts=("$_pkgname")
15
source=("$_pkgname::git+$url.git")
16
sha256sums=('SKIP')
17
18
pkgver() {
19
cd "$srcdir/$_pkgname"
20
# Check git describe separately rather than relying on `... | sed || fallback`:
21
# with no tags yet, describe writes nothing and the pipeline's status comes
22
# from sed, which happily succeeds on empty input -- so the fallback never
23
# runs and makepkg dies with "pkgver is not allowed to be empty".
24
local desc
25
if desc=$(git describe --long --tags 2>/dev/null) && [[ -n $desc ]]; then
26
printf '%s' "$desc" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
27
else
28
printf '0.1.0.r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
29
fi
30
}
31
32
package() {
33
cd "$srcdir/$_pkgname"
34
35
# Deliberately NOT site-packages. That path is Python-version-specific
36
# (/usr/lib/python3.13/site-packages), and this is an arch=any package: the
37
# version that built it would be baked in, so a Python minor bump would break
38
# every installed copy until rebuilt. A private dir on sys.path is immune.
39
install -Dm644 moarchy_store/*.py -t "$pkgdir/usr/lib/$_pkgname/moarchy_store/"
40
41
install -Dm755 bin/moarchy-store "$pkgdir/usr/bin/moarchy-store"
42
43
# The catalogue doubles as the install allowlist, so it must land root-owned
44
# and not group- or world-writable. The helper refuses to run otherwise.
45
install -Dm644 catalogue.toml "$pkgdir/usr/share/$_pkgname/catalogue.toml"
46
47
# Not in /usr/bin: this is only ever invoked through the polkit action, and
48
# putting it on PATH invites someone to call it directly and be confused by
49
# the permission error.
50
install -Dm755 data/moarchy-store-helper \
51
"$pkgdir/usr/lib/$_pkgname/moarchy-store-helper"
52
53
install -Dm644 data/org.moarchy.Store.policy \
54
"$pkgdir/usr/share/polkit-1/actions/org.moarchy.Store.policy"
55
install -Dm644 data/org.moarchy.Store.desktop \
56
"$pkgdir/usr/share/applications/org.moarchy.Store.desktop"
57
58
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
59
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
60
}
61
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-05 09:59:47 | Low | 1 |