Skip to content

Commit

Permalink
Merge pull request #27 from tsirysndr/chore/packaging
Browse files Browse the repository at this point in the history
chore: package for ubuntu/debian and fedora
  • Loading branch information
tsirysndr authored Jan 26, 2025
2 parents b4b9929 + 770c58b commit 7f47a91
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions dist/debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.deb
1 change: 1 addition & 0 deletions dist/debian/amd64/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/*
8 changes: 8 additions & 0 deletions dist/debian/amd64/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: tunein-cli
Version: 0.3.0
Section: user/multimedia
Priority: optional
Architecture: amd64
Maintainer: Tsiry Sandratraina <[email protected]>
Depends: alsa-utils, libasound2-dev
Description: Browse and listen to thousands of radio stations across the globe right from your terminal 🌎 πŸ“» 🎡✨
1 change: 1 addition & 0 deletions dist/debian/arm64/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/*
9 changes: 9 additions & 0 deletions dist/debian/arm64/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: tunein-cli
Version: 0.3.0
Section: user/multimedia
Priority: optional
Architecture: arm64
Maintainer: Tsiry Sandratraina <[email protected]>
Depends: alsa-utils, libasound2-dev
Description: Browse and listen to thousands of radio stations across the globe right from your terminal 🌎 πŸ“» 🎡✨

26 changes: 26 additions & 0 deletions dist/rpm/amd64/tunein.spec
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions dist/rpm/arm64/tunein.spec
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f47a91

Please sign in to comment.