mediasync-git
LOW
maintainer arkaizn
1 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: Arkaizn <your-email at example dot com>
2
pkgname=mediasync-git
3
_pkgname=mediasync
4
pkgver=r22.5515558
5
pkgrel=1
6
pkgdesc="Universal media session bridge: local MPRIS players and Jellyfin sessions behind one local API"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/arkaizn/mediasync"
9
license=('MIT')
10
depends=('glibc' 'dbus')
11
makedepends=('git' 'go')
12
optdepends=(
13
'gnome-keyring: Secret Service backend for Jellyfin tokens'
14
'kwallet: Secret Service backend for Jellyfin tokens (KWallet >= 5.97)'
15
'keepassxc: Secret Service backend for Jellyfin tokens'
16
)
17
provides=("$_pkgname")
18
conflicts=("$_pkgname")
19
source=("$_pkgname::git+https://github.com/arkaizn/mediasync.git")
20
sha256sums=('SKIP')
21
22
pkgver() {
23
cd "$_pkgname"
24
# v0.1.0-12-gabc1234 -> 0.1.0.r12.gabc1234; without tags: r123.abc1234
25
if git describe --long --tags --abbrev=7 >/dev/null 2>&1; then
26
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
27
else
28
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
29
fi
30
}
31
32
prepare() {
33
cd "$_pkgname"
34
export GOPATH="$srcdir/gopath"
35
go mod download -x 2>/dev/null || go mod download
36
}
37
38
build() {
39
cd "$_pkgname"
40
export GOPATH="$srcdir/gopath"
41
export CGO_CPPFLAGS="${CPPFLAGS}"
42
export CGO_CFLAGS="${CFLAGS}"
43
export CGO_CXXFLAGS="${CXXFLAGS}"
44
export CGO_LDFLAGS="${LDFLAGS}"
45
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
46
go build -ldflags "-linkmode=external -X main.version=${pkgver}" -o build/ ./cmd/...
47
}
48
49
check() {
50
cd "$_pkgname"
51
export GOPATH="$srcdir/gopath"
52
export GOFLAGS="-mod=readonly -modcacherw"
53
# D-Bus tests start a private dbus-daemon and skip if it is missing.
54
go test ./...
55
}
56
57
package() {
58
cd "$_pkgname"
59
install -Dm755 build/mediasyncd build/mediasyncctl -t "$pkgdir/usr/bin/"
60
install -dm755 "$pkgdir/usr/lib/systemd/user"
61
sed 's|@BINDIR@|/usr/bin|g' contrib/systemd/mediasyncd.service.in \
62
> "$pkgdir/usr/lib/systemd/user/mediasyncd.service"
63
chmod 644 "$pkgdir/usr/lib/systemd/user/mediasyncd.service"
64
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
65
install -Dm644 THIRD_PARTY_NOTICES.md "$pkgdir/usr/share/licenses/$pkgname/THIRD_PARTY_NOTICES.md"
66
install -Dm644 examples/config.toml "$pkgdir/usr/share/doc/$_pkgname/config.toml"
67
install -Dm644 README.md CHANGELOG.md -t "$pkgdir/usr/share/doc/$_pkgname/"
68
install -Dm644 docs/*.md -t "$pkgdir/usr/share/doc/$_pkgname/docs/"
69
}
70
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-03 22:05:32 | Low | 1 |