mediasync-git

LOW
maintainer arkaizn 1 votes scanned 2026-11-03 22:05:32.218858
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: Arkaizn <your-email at example dot com>
2pkgname=mediasync-git
3_pkgname=mediasync
4pkgver=r22.5515558
5pkgrel=1
6pkgdesc="Universal media session bridge: local MPRIS players and Jellyfin sessions behind one local API"
7arch=('x86_64' 'aarch64')
8url="https://github.com/arkaizn/mediasync"
9license=('MIT')
10depends=('glibc' 'dbus')
11makedepends=('git' 'go')
12optdepends=(
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)
17provides=("$_pkgname")
18conflicts=("$_pkgname")
19source=("$_pkgname::git+https://github.com/arkaizn/mediasync.git")
20sha256sums=('SKIP')
21
22pkgver() {
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
32prepare() {
33 cd "$_pkgname"
34 export GOPATH="$srcdir/gopath"
35 go mod download -x 2>/dev/null || go mod download
36}
37
38build() {
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
49check() {
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
57package() {
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)SeverityRules
2026-11-03 22:05:32 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