From 770c58b5b15a2807ce674da9faeaa9636a413f75 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 26 Jan 2025 16:04:16 +0300 Subject: [PATCH] chore: package for ubuntu/debian and fedora --- README.md | 28 +++++++++++++++++++++++++++- dist/debian/.gitignore | 1 + dist/debian/amd64/.gitignore | 1 + dist/debian/amd64/DEBIAN/control | 8 ++++++++ dist/debian/arm64/.gitignore | 1 + dist/debian/arm64/DEBIAN/control | 9 +++++++++ dist/rpm/amd64/tunein.spec | 26 ++++++++++++++++++++++++++ dist/rpm/arm64/tunein.spec | 27 +++++++++++++++++++++++++++ 8 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 dist/debian/.gitignore create mode 100644 dist/debian/amd64/.gitignore create mode 100644 dist/debian/amd64/DEBIAN/control create mode 100644 dist/debian/arm64/.gitignore create mode 100644 dist/debian/arm64/DEBIAN/control create mode 100644 dist/rpm/amd64/tunein.spec create mode 100644 dist/rpm/arm64/tunein.spec diff --git a/README.md b/README.md index 6b43789..47b1efc 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,33 @@ cachix use tsirysndr nix profile install --experimental-features "nix-command flakes" github:tsirysndr/tunein-cli ``` -Using [paru](https://github.com/Morganamilo/paru) (Arch Linux): +### Ubuntu/Debian + +```bash +echo "deb [trusted=yes] https://apt.fury.io/tsiry/ /" | sudo tee /etc/apt/sources.list.d/fury.list +sudo apt-get update +sudo apt-get install tunein-cli +``` + +### Fedora + +Add the following to `/etc/yum.repos.d/fury.repo`: + +``` +[fury] +name=Gemfury Private Repo +baseurl=https://yum.fury.io/tsiry/ +enabled=1 +gpgcheck=0 +``` + +Then run: +```bash +dnf install tunein-cli +``` + +### Arch Linux +Using [paru](https://github.com/Morganamilo/paru): ```bash paru -S tunein-cli-bin diff --git a/dist/debian/.gitignore b/dist/debian/.gitignore new file mode 100644 index 0000000..c00df13 --- /dev/null +++ b/dist/debian/.gitignore @@ -0,0 +1 @@ +*.deb diff --git a/dist/debian/amd64/.gitignore b/dist/debian/amd64/.gitignore new file mode 100644 index 0000000..097923b --- /dev/null +++ b/dist/debian/amd64/.gitignore @@ -0,0 +1 @@ +usr/* diff --git a/dist/debian/amd64/DEBIAN/control b/dist/debian/amd64/DEBIAN/control new file mode 100644 index 0000000..1841380 --- /dev/null +++ b/dist/debian/amd64/DEBIAN/control @@ -0,0 +1,8 @@ +Package: tunein-cli +Version: 0.3.0 +Section: user/multimedia +Priority: optional +Architecture: amd64 +Maintainer: Tsiry Sandratraina +Depends: alsa-utils, libasound2-dev +Description: Browse and listen to thousands of radio stations across the globe right from your terminal 🌎 📻 🎵✨ diff --git a/dist/debian/arm64/.gitignore b/dist/debian/arm64/.gitignore new file mode 100644 index 0000000..097923b --- /dev/null +++ b/dist/debian/arm64/.gitignore @@ -0,0 +1 @@ +usr/* diff --git a/dist/debian/arm64/DEBIAN/control b/dist/debian/arm64/DEBIAN/control new file mode 100644 index 0000000..0b65a8b --- /dev/null +++ b/dist/debian/arm64/DEBIAN/control @@ -0,0 +1,9 @@ +Package: tunein-cli +Version: 0.3.0 +Section: user/multimedia +Priority: optional +Architecture: arm64 +Maintainer: Tsiry Sandratraina +Depends: alsa-utils, libasound2-dev +Description: Browse and listen to thousands of radio stations across the globe right from your terminal 🌎 📻 🎵✨ + diff --git a/dist/rpm/amd64/tunein.spec b/dist/rpm/amd64/tunein.spec new file mode 100644 index 0000000..a333c0d --- /dev/null +++ b/dist/rpm/amd64/tunein.spec @@ -0,0 +1,26 @@ +Name: tunein-cli +Version: 0.3.0 +Release: 1%{?dist} +Summary: CLI for listening to internet radio stations + +License: MIT + +BuildArch: x86_64 + +Requires: alsa-utils, alsa-lib-devel + +%description +Browse and listen to thousands of radio stations across the globe right from your terminal 🌎 📻 🎵✨ + +%prep +# Prepare the build environment + +%build +# Build steps (if any) + +%install +mkdir -p %{buildroot}/usr/bin +cp -r %{_sourcedir}/amd64/usr %{buildroot}/ + +%files +/usr/bin/tunein diff --git a/dist/rpm/arm64/tunein.spec b/dist/rpm/arm64/tunein.spec new file mode 100644 index 0000000..4d73741 --- /dev/null +++ b/dist/rpm/arm64/tunein.spec @@ -0,0 +1,27 @@ + +Name: tunein-cli +Version: 0.3.0 +Release: 1%{?dist} +Summary: CLI for listening to internet radio stations + +License: MIT + +BuildArch: aarch64 + +Requires: alsa-utils, alsa-lib-devel + +%description +Browse and listen to thousands of radio stations across the globe right from your terminal 🌎 📻 🎵✨ + +%prep +# Prepare the build environment + +%build +# Build steps (if any) + +%install +mkdir -p %{buildroot}/usr/bin +cp -r %{_sourcedir}/arm64/usr %{buildroot}/ + +%files +/usr/bin/tunein