moarchy-minesweeper

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

Scan history

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