plex-tray
LOW
maintainer bpier
0 votes
scanned 2026-11-03 22:05:32.218858
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: Pierre Bertet <hi@bpier.re>
2
pkgname=plex-tray
3
pkgver=0.1.0
4
pkgrel=3
5
pkgdesc='Desktop tray controls for the system Plex Media Server service'
6
arch=('x86_64')
7
url='https://github.com/bpierre/plex-tray'
8
license=('MIT')
9
# Runtime services and xdg-open are required even though they are not linked libraries.
10
depends=('glibc' 'libgcc' 'dbus' 'systemd' 'polkit' 'plex-media-server' 'xdg-utils' 'hicolor-icon-theme')
11
makedepends=('cargo')
12
checkdepends=('desktop-file-utils')
13
optdepends=('libnotify: desktop notifications for service errors')
14
options=('!debug')
15
source=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
16
sha256sums=('507c50e5fd9c3c6c1ff0c51df59ef145e7214824a65fce495991b8ef2ab6bda6')
17
_target="$CARCH-unknown-linux-gnu"
18
19
prepare() {
20
cd "$srcdir/$pkgname-$pkgver"
21
export RUSTUP_TOOLCHAIN=stable
22
cargo fetch --locked --target "$_target"
23
}
24
25
build() {
26
cd "$srcdir/$pkgname-$pkgver"
27
export RUSTUP_TOOLCHAIN=stable
28
export CARGO_TARGET_DIR=target
29
cargo build --release --frozen --target "$_target"
30
}
31
32
check() {
33
cd "$srcdir/$pkgname-$pkgver"
34
export RUSTUP_TOOLCHAIN=stable
35
export CARGO_TARGET_DIR=target
36
desktop-file-validate plex-tray.desktop
37
cargo test --frozen --target "$_target"
38
./target/"$_target"/release/plex-tray --help >/dev/null
39
}
40
41
package() {
42
cd "$srcdir/$pkgname-$pkgver"
43
install -Dm755 target/"$_target"/release/plex-tray "$pkgdir/usr/bin/plex-tray"
44
install -Dm644 plex-tray.desktop "$pkgdir/usr/share/applications/plex-tray.desktop"
45
install -Dm644 icons/plex-tray.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/plex-tray.svg"
46
install -Dm644 icons/plex-tray-symbolic.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/plex-tray-symbolic.svg"
47
install -Dm644 50-plex-tray.rules "$pkgdir/usr/share/polkit-1/rules.d/50-plex-tray.rules"
48
install -Dm644 README.md "$pkgdir/usr/share/doc/plex-tray/README.md"
49
install -Dm644 CONTRIBUTING.md "$pkgdir/usr/share/doc/plex-tray/CONTRIBUTING.md"
50
install -Dm644 RELEASING.md "$pkgdir/usr/share/doc/plex-tray/RELEASING.md"
51
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/plex-tray/LICENSE"
52
ln -s ../../licenses/plex-tray/LICENSE "$pkgdir/usr/share/doc/plex-tray/LICENSE"
53
}
54
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-03 22:05:32 | Low | 1 |