summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06b12f812d1f5f4cc669a9a6c83ad0ef6eebf07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: 0fflineuser <0fflineuser@cock.li>
pkgname=radion
pkgver=1.2.0
pkgrel=1
pkgdesc="CLI internet radio client in Bash."
arch=('x86_64')
url="https://gitlab.com/christosangel/$pkgname"
license=('GPL-2.0-or-later')
depends=("bash" "mpv" "sox" "yad")
optdepends=("fzf" "rofi" "dmenu")
install=proto.install
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('d35101f0be1d242b8fbf3c68148f524588f6faf8647bd70f82ca266bb58fc0ea')

prepare() {
	cd "$pkgname-$pkgver"
}

package() {
	cd "$pkgname-$pkgver"
  mkdir -p "$pkgdir/usr/share/$pkgname/"
  mkdir -p "$pkgdir/usr/share/$pkgname/mpv"
  cp stations.txt "$pkgdir/usr/share/$pkgname/"
  cp radion-rofi-theme.rasi "$pkgdir/usr/share/$pkgname/"
  cp -r png/ "$pkgdir/usr/share/$pkgname/"
  cp icecast-logger.lua -t "$pkgdir/usr/share/$pkgname/mpv/"

  install -Dm644 $pkgname.conf "$pkgdir/etc/$pkgname.conf"
  install -Dm755 $pkgname.sh "$pkgdir/usr/bin/$pkgname.sh"
  install -Dm755 record-toggle.sh "$pkgdir/usr/bin/record-toggle.sh"
}