Add simple debian-packaging with cargo-deb
This commit is contained in:
committed by
Henrik Friedrichsen
parent
ab60556644
commit
58c0d22d41
14
Cargo.toml
14
Cargo.toml
@@ -63,3 +63,17 @@ termion_backend = ["cursive/termion-backend"]
|
|||||||
mpris = ["dbus", "dbus-tree"]
|
mpris = ["dbus", "dbus-tree"]
|
||||||
notify = ["notify-rust"]
|
notify = ["notify-rust"]
|
||||||
default = ["share_clipboard", "pulseaudio_backend", "mpris", "notify", "cursive/pancurses-backend"]
|
default = ["share_clipboard", "pulseaudio_backend", "mpris", "notify", "cursive/pancurses-backend"]
|
||||||
|
|
||||||
|
[package.metadata.deb]
|
||||||
|
depends = "$auto, pulseaudio"
|
||||||
|
section = "sound"
|
||||||
|
priority = "optional"
|
||||||
|
extended-description = """\
|
||||||
|
ncurses Spotify client written in Rust using librespot. \
|
||||||
|
It is heavily inspired by ncurses MPD clients, such as ncmpc."""
|
||||||
|
license-file = ["LICENSE"]
|
||||||
|
assets = [
|
||||||
|
["target/release/ncspot", "usr/bin/", "755"],
|
||||||
|
["README.md", "usr/share/doc/ncspot/README.md", "644"],
|
||||||
|
]
|
||||||
|
|
||||||
|
|||||||
17
README.md
17
README.md
@@ -52,6 +52,23 @@ For Fedora, these dependencies are required:
|
|||||||
dnf install pulseaudio-libs-devel libxcb-devel openssl-devel ncurses-devel dbus-devel
|
dnf install pulseaudio-libs-devel libxcb-devel openssl-devel ncurses-devel dbus-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Building a Debian Package
|
||||||
|
|
||||||
|
You can use `cargo-deb` create in order to build a Debian package from source. Install it by:
|
||||||
|
|
||||||
|
```
|
||||||
|
cargo install cargo-deb
|
||||||
|
```
|
||||||
|
|
||||||
|
Then you can build a Dabian package with:
|
||||||
|
|
||||||
|
```
|
||||||
|
cargo deb
|
||||||
|
```
|
||||||
|
|
||||||
|
You can find it under `target/debian`.
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
* Install the latest ncspot release using `cargo install ncspot`
|
* Install the latest ncspot release using `cargo install ncspot`
|
||||||
|
|||||||
Reference in New Issue
Block a user