[package]
name = "scropple-linux"
version = "0.1.0"
edition = "2024"
description = "Scrobble what Linux media players play (MPRIS over D-Bus) to Scropple-compatible backends"
license = "GPL-3.0-or-later"
repository = "https://gg.neiam.co/r/neiam/scropple-linux"
[[bin]]
name = "scropple"
path = "src/main.rs"
[dependencies]
anyhow = "1.0.104"
clap = { version = "4.6.8", features = ["derive"] }
directories = "6.0.0"
futures-util = "0.3.34"
reqwest = { version = "0.13.5", default-features = false, features = ["json", "rustls"] }
rusqlite = { version = "0.43.0", features = ["bundled"] }
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.154"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "signal", "sync"] }
toml = "1.2.1"
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
zbus = { version = "5", default-features = false, features = ["tokio"] }
# ── packaging ────────────────────────────────────────────────────────
#
# `cargo deb` and `cargo generate-rpm` build the two packages CI
# publishes (packaging/Dockerfile, .forgejo/workflows/packages.yml), from
# this metadata. Both run by hand too. CI overrides only the version
# stamp and the maintainer.
[package.metadata.deb]
name = "scropple"
maintainer = "neiam <noreply@gg.neiam.co>"
copyright = "The Scropple authors, GPL-3.0-or-later"
license-file = ["LICENSE.md", "0"]
section = "sound"
priority = "optional"
depends = "$auto"
extended-description = """
Follows media players on the session bus (MPRIS 2) and scrobbles what
they play to Scropple-compatible servers such as final_track, with an
offline queue. Runs as a systemd user service: after installing,
`scropple init`, then `systemctl --user enable --now scropple`.
"""
assets = [
["target/release/scropple", "usr/bin/", "755"],
["packaging/scropple.service", "usr/lib/systemd/user/scropple.service", "644"],
["contrib/config.example.toml", "usr/share/doc/scropple/config.example.toml", "644"],
["README.md", "usr/share/doc/scropple/README.md", "644"],
]
[package.metadata.generate-rpm]
name = "scropple"
summary = "Scrobble what Linux media players play (MPRIS) to Scropple-compatible servers"
assets = [
{ source = "target/release/scropple", dest = "/usr/bin/scropple", mode = "755" },
{ source = "packaging/scropple.service", dest = "/usr/lib/systemd/user/scropple.service", mode = "644" },
{ source = "contrib/config.example.toml", dest = "/usr/share/doc/scropple/config.example.toml", mode = "644", doc = true },
{ source = "README.md", dest = "/usr/share/doc/scropple/README.md", mode = "644", doc = true },
{ source = "LICENSE.md", dest = "/usr/share/licenses/scropple/LICENSE.md", mode = "644", doc = true },
]
neiam
/scropple-linux
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
2.8 KiB · text
History
6c56e6c