moarchy-solitaire
LOW
maintainer simonschubert
0 votes
scanned 2026-09-13 19:15:06.142757
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-solitaire
3
pkgver=0.1.0
4
pkgrel=1
5
pkgdesc="Klondike patience for a Linux phone, one tap a move"
6
arch=('any')
7
url="https://github.com/SimonSchubert/moarchy-apps"
8
license=('MIT')
9
# Pure Python, so arch=any. The GUI stack is all runtime, nothing is compiled.
10
# python-cairo is not optional here the way it nearly is elsewhere: the table is
11
# one drawing area, and every card, pip and rank on screen is drawn from a
12
# Python draw function -- the suits are four cairo paths rather than a font or
13
# an SVG, so that a card's suit cannot render as a box on a phone whose font
14
# stack is not the desktop's. Without pycairo GTK cannot hand that function a
15
# context at all, and there is nothing left of the app.
16
depends=('python' 'python-gobject' 'gtk4' 'libadwaita' 'python-cairo')
17
source=("$url/releases/download/solitaire-v$pkgver/$pkgname-$pkgver.tar.gz")
18
sha256sums=('e884b83349edf28bc3b1839b43cdb5d3d1ec8cdf2fce46e71eed830c5e65900a')
19
20
# The source tarball is assembled by packaging/release.sh from two subtrees of
21
# one tag -- apps/solitaire and shared -- so it holds this app and the shared
22
# code it uses and nothing else. That is what lets a monorepo keep per-app
23
# versions: `git archive <tag>:<subdir>` means one repo does not mean one
24
# version number.
25
#
26
# Deliberately a versioned package rather than a -git one. mobileomarchy pins
27
# each package by a commit; for a VCS package that pin governs the packaging and
28
# says nothing about the code makepkg then clones at HEAD, so "pinned" would
29
# read as reproducible without being it. A tarball with a checksum makes the pin
30
# name the exact code, and gives pacman a version it can compare for upgrades.
31
#
32
# The source is a release asset built with `git archive`, not GitHub's
33
# auto-generated archive: those are produced on demand, and a change to the
34
# compression GitHub uses has broken every checksum pinned against them before.
35
36
check() {
37
cd "$srcdir/$pkgname-$pkgver"
38
# The rules and the file. Both are deliberately GTK-free, so they run in a
39
# build chroot; the widget tests skip themselves without a display, which a
40
# chroot does not have. scripts/check.sh runs those.
41
PYTHONPATH=. python3 -m unittest discover -s tests
42
}
43
44
package() {
45
cd "$srcdir/$pkgname-$pkgver"
46
47
# Deliberately NOT site-packages. That path is Python-version-specific
48
# (/usr/lib/python3.13/site-packages), and this is an arch=any package: the
49
# version that built it would be baked in, so a Python minor bump would break
50
# every installed copy until rebuilt. A private dir on sys.path is immune.
51
install -Dm644 moarchy_solitaire/*.py -t "$pkgdir/usr/lib/$pkgname/moarchy_solitaire/"
52
53
# The shared code is vendored into this package rather than being a package of
54
# its own. The store reports what an app costs in packages and megabytes onto
55
# a stock image, and a second package for two hundred lines of palette
56
# arithmetic is a cost with nothing behind it. One source copy in the repo,
57
# one self-contained package here, no runtime coupling between apps.
58
install -Dm644 moarchy_ui/*.py -t "$pkgdir/usr/lib/$pkgname/moarchy_ui/"
59
60
install -Dm755 launcher "$pkgdir/usr/bin/moarchy-solitaire"
61
62
install -Dm644 data/org.moarchy.Solitaire.desktop \
63
"$pkgdir/usr/share/applications/org.moarchy.Solitaire.desktop"
64
install -Dm644 data/org.moarchy.Solitaire.svg \
65
"$pkgdir/usr/share/icons/hicolor/scalable/apps/org.moarchy.Solitaire.svg"
66
67
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
68
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
69
}
70
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-13 19:15:06 | Low | 1 |