moarchy-food
LOW
maintainer simonschubert
0 votes
scanned 2026-09-28 11:20:45.263512
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
#
3
# Food as an app: the QML tree in /usr/share/moarchy-food, started by
4
# /usr/bin/moarchy-food, which opens it in the running Omarchy shell when the
5
# plugin is installed there and as its own Quickshell process everywhere else.
6
#
7
# The camera is not QML. /usr/lib/moarchy-food/moarchy-food-scan is a small
8
# Python + GStreamer process -- v4l2src, and zbar from gst-plugins-bad -- that
9
# the app starts while its scan page is open and that prints each barcode it
10
# sees as a line. That is the whole of the Python in this package now.
11
#
12
# 0.1.0 was a GTK4/libadwaita app. 0.2.0 reads and writes the same
13
# ~/.local/share/moarchy-food/history.json and products.json, so a history
14
# scanned in one is the history found in the other.
15
pkgname=moarchy-food
16
pkgver=0.2.0
17
pkgrel=1
18
pkgdesc='Point the camera at a barcode: nutrition facts from Open Food Facts, for Quickshell'
19
arch=('any')
20
url='https://github.com/SimonSchubert/moarchy-apps'
21
license=('MIT')
22
# curl is the lookup and the picture. The scanner needs GStreamer's Python
23
# bindings, v4l2src and jpegenc (good), and the zbar element (bad, with zbar
24
# itself). gtk4, libadwaita and gst-plugin-gtk4 are no longer needed.
25
depends=('quickshell' 'curl' 'ttf-jetbrains-mono-nerd' 'hicolor-icon-theme'
26
'python' 'python-gobject' 'gstreamer' 'gst-plugins-base'
27
'gst-plugins-good' 'gst-plugins-bad' 'zbar')
28
# A release asset that packaging/release.sh builds from apps/food at the tag,
29
# with shared/kit in place of the kit link.
30
source=("$url/releases/download/food-v$pkgver/$pkgname-$pkgver.tar.gz")
31
# Pinned in the commit after the tag, as every app's here is.
32
sha256sums=('0d049c582ab142e202747f2e3002b863afdb1a79b16bbe26872bc1d83c62ccc7')
33
34
check() {
35
cd "$pkgname-$pkgver"
36
# Open Food Facts' JSON, the barcodes and the two files, against records
37
# written by hand; then the scanner's protocol through its fake. No display,
38
# no camera and no network needed.
39
QT_QPA_PLATFORM=offscreen /usr/lib/qt6/bin/qmltestrunner -input tests
40
python3 -m unittest discover -s tests -p 'test_*.py'
41
}
42
43
package() {
44
cd "$pkgname-$pkgver"
45
46
install -d "$pkgdir/usr/share/$pkgname/kit"
47
install -m644 manifest.json ./*.qml ./*.js icon.svg "$pkgdir/usr/share/$pkgname/"
48
install -m644 kit/*.qml kit/*.js "$pkgdir/usr/share/$pkgname/kit/"
49
50
install -Dm755 libexec/moarchy-food-scan "$pkgdir/usr/lib/$pkgname/moarchy-food-scan"
51
install -Dm755 bin/moarchy-food "$pkgdir/usr/bin/moarchy-food"
52
install -Dm644 org.moarchy.Food.desktop \
53
"$pkgdir/usr/share/applications/org.moarchy.Food.desktop"
54
install -Dm644 icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/org.moarchy.Food.svg"
55
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
56
}
57
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-28 11:20:45 | Low | 1 |