gmid-piano

LOW
maintainer akhenakh 0 votes scanned 2026-11-03 04:04:05.596932
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: Fabrice Aneche <akh@inair.space>
2
3# Upstream is called gmid, but the official repositories already ship the
4# Gemini server under that name, hence the gmid-piano package name.
5pkgname=gmid-piano
6pkgver=0.2
7pkgrel=1
8pkgdesc="Falling-note piano roll, keyboard and chord/scale explorers with MIDI editing"
9arch=('x86_64' 'aarch64')
10url="https://github.com/akhenakh/gmid"
11license=('GPL-3.0-or-later' 'OFL-1.1' 'custom:GeneralUser-GS')
12depends=('alsa-lib')
13makedepends=('go>=1.27')
14optdepends=('musescore: import Guitar Pro and Capella scores')
15source=(
16 "$pkgname-$pkgver.tar.gz::https://github.com/akhenakh/gmid/archive/refs/tags/v$pkgver.tar.gz"
17 "GeneralUser-GS.sf2::https://raw.githubusercontent.com/mrbumpy409/GeneralUser-GS/684543d5e5efaef08d02be50dcda8d552478fa60/GeneralUser-GS.sf2"
18 "GeneralUser-GS-LICENSE.txt::https://raw.githubusercontent.com/mrbumpy409/GeneralUser-GS/684543d5e5efaef08d02be50dcda8d552478fa60/documentation/LICENSE.txt"
19)
20sha256sums=(
21 '285d3fbea896c441e24ca6c6d5d718e1b781040be2bc60392928c342041006cc'
22 '9575028c7a1f589f5770fccc8cff2734566af40cd26ed836944e9a5152688cfe'
23 '7b32efefdf95ce38a043799f0659853ddc00fbaa14d8c50f0aca16b9b8b405be'
24)
25
26prepare() {
27 cd "gmid-$pkgver"
28 # The 31 MB GeneralUser GS bank is not committed upstream; `make assets`
29 # downloads it at build time. Ship the pinned copy as the bundled GM bank.
30 install -Dm644 "$srcdir/GeneralUser-GS.sf2" assets/soundfonts/GeneralUser-GS.sf2
31}
32
33build() {
34 cd "gmid-$pkgver"
35 # cgo: malgo (miniaudio) for audio, rtmididrv for MIDI input.
36 export CGO_ENABLED=1
37 go build -trimpath -buildvcs=false \
38 -ldflags "-s -w -X main.version=$pkgver" -o gmid ./cmd/gmid
39}
40
41check() {
42 cd "gmid-$pkgver"
43 export CGO_ENABLED=1
44 go test ./...
45}
46
47package() {
48 cd "gmid-$pkgver"
49
50 # assets/ must stay next to the binary: internal/config.AssetsDir probes the
51 # executable's directory. The launcher also sets GMID_ASSETS explicitly.
52 install -Dm755 gmid "$pkgdir/usr/lib/$pkgname/$pkgname"
53 cp -r assets "$pkgdir/usr/lib/$pkgname/assets"
54
55 install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<EOF
56#!/bin/sh
57export GMID_ASSETS=/usr/lib/$pkgname/assets
58exec /usr/lib/$pkgname/$pkgname "\$@"
59EOF
60
61 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$pkgname.desktop" <<EOF
62[Desktop Entry]
63Type=Application
64Name=gmid
65GenericName=Piano Roll
66Comment=Falling-note piano roll with MIDI editing and chord/scale explorers
67Exec=$pkgname
68Terminal=false
69Categories=AudioVideo;Audio;Music;
70Keywords=piano;midi;music;chords;scales;
71StartupWMClass=gmid
72EOF
73
74 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
75 install -Dm644 THIRD_PARTY_LICENSES.md "$pkgdir/usr/share/licenses/$pkgname/THIRD_PARTY_LICENSES.md"
76 install -Dm644 "$srcdir/GeneralUser-GS-LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.GeneralUser-GS"
77
78 install -d "$pkgdir/usr/share/doc/$pkgname"
79 install -m644 docs/SHORTCUTS.md docs/MCP.md "$pkgdir/usr/share/doc/$pkgname/"
80}
81

Scan history

Scanned at (UTC)SeverityRules
2026-11-03 04:04:05 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