moarchy-reversi

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

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