gmid-piano
LOW
maintainer akhenakh
0 votes
scanned 2026-11-03 04:04:05.596932
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.
5
pkgname=gmid-piano
6
pkgver=0.2
7
pkgrel=1
8
pkgdesc="Falling-note piano roll, keyboard and chord/scale explorers with MIDI editing"
9
arch=('x86_64' 'aarch64')
10
url="https://github.com/akhenakh/gmid"
11
license=('GPL-3.0-or-later' 'OFL-1.1' 'custom:GeneralUser-GS')
12
depends=('alsa-lib')
13
makedepends=('go>=1.27')
14
optdepends=('musescore: import Guitar Pro and Capella scores')
15
source=(
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
)
20
sha256sums=(
21
'285d3fbea896c441e24ca6c6d5d718e1b781040be2bc60392928c342041006cc'
22
'9575028c7a1f589f5770fccc8cff2734566af40cd26ed836944e9a5152688cfe'
23
'7b32efefdf95ce38a043799f0659853ddc00fbaa14d8c50f0aca16b9b8b405be'
24
)
25
26
prepare() {
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
33
build() {
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
41
check() {
42
cd "gmid-$pkgver"
43
export CGO_ENABLED=1
44
go test ./...
45
}
46
47
package() {
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
57
export GMID_ASSETS=/usr/lib/$pkgname/assets
58
exec /usr/lib/$pkgname/$pkgname "\$@"
59
EOF
60
61
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$pkgname.desktop" <<EOF
62
[Desktop Entry]
63
Type=Application
64
Name=gmid
65
GenericName=Piano Roll
66
Comment=Falling-note piano roll with MIDI editing and chord/scale explorers
67
Exec=$pkgname
68
Terminal=false
69
Categories=AudioVideo;Audio;Music;
70
Keywords=piano;midi;music;chords;scales;
71
StartupWMClass=gmid
72
EOF
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) | Severity | Rules |
|---|---|---|
| 2026-11-03 04:04:05 | Low | 1 |