opal-media-player
LOW
maintainer debpalash
0 votes
scanned 2026-08-28 05:34:42.090166
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: Palash <via github.com/debpalash>
2
# AUR source package for Opal — builds from the release tarball.
3
# push-to-aur.sh replaces pkgver from the release tag before publication and
4
# updpkgsums fills the checksum once that tag is public.
5
pkgname=opal-media-player
6
pkgver=0.6.6
7
pkgrel=1
8
pkgdesc="Play everything — media player, universal search, torrent streaming, local AI, one native binary"
9
arch=('x86_64')
10
url="https://github.com/debpalash/Opal"
11
license=('GPL-3.0-only')
12
depends=(
13
'mpv'
14
'sdl2'
15
'sqlite'
16
'libtorrent-rasterbar'
17
'curl'
18
'ffmpeg'
19
)
20
makedepends=(
21
'zig>=0.16.0'
22
'gcc'
23
)
24
optdepends=(
25
'yt-dlp: YouTube playback and downloads'
26
'streamlink: live stream resolution'
27
'onnxruntime: OCR bubble detection'
28
'python: voice helper scripts (STT/TTS servers)'
29
)
30
source=("Opal-$pkgver.tar.gz::https://github.com/debpalash/Opal/archive/refs/tags/v$pkgver.tar.gz")
31
sha256sums=('cdec001ea1faa0a074204b93c2d591d9b60fc1cdfb9324aa0430762b2a9caeb2')
32
33
build() {
34
cd "Opal-$pkgver"
35
36
# 1. C++ torrent wrapper (isolates the libtorrent C++ ABI from Zig)
37
g++ -std=c++17 -O3 -shared -fPIC \
38
src/torrent_wrapper.cpp \
39
-o libtorrent_wrapper.so \
40
-ltorrent-rasterbar
41
42
# 2. The app. -fsys=sdl2 links the system SDL2 (Wayland support);
43
# the binary carries $ORIGIN/../lib/opal in its rpath, matching the
44
# install layout below. Pin x86_64_v2 so AUR builds stay portable.
45
zig build -Doptimize=ReleaseSafe -fsys=sdl2 -Dcpu=x86_64_v2
46
}
47
48
package() {
49
cd "Opal-$pkgver"
50
51
install -Dm755 zig-out/bin/opal "$pkgdir/usr/bin/opal"
52
install -Dm755 libtorrent_wrapper.so "$pkgdir/usr/lib/opal/libtorrent_wrapper.so"
53
install -Dm644 packaging/opal.desktop "$pkgdir/usr/share/applications/opal.desktop"
54
install -Dm644 assets/logo.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/opal.svg"
55
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
56
}
57
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-28 05:34:42 | Low | 1 |