summaryrefslogtreecommitdiff
path: root/testing/pyradio/APKBUILD
blob: 06c70dd386324c5d2db2030fa38b789763fa907e (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
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=pyradio
pkgver=0.8.9.32
pkgrel=0
pkgdesc="Curses based internet radio player"
url="https://www.coderholic.com/pyradio"
arch="noarch"
license="MIT"
depends="python3 py3-dnspython py3-psutil py3-requests"
makedepends="py3-setuptools"
options="!check" # no testsuite
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/coderholic/pyradio/archive/refs/tags/$pkgver.tar.gz"

build() {
	sed -i 's/^distro = None$/distro = AlpineLinux/' pyradio/config
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	install -Dm644 pyradio.1 pyradio_rb.1 \
		-t "$pkgdir"/usr/share/man/man1/
}

sha512sums="
bc4317217c46d99e07430278c68bba4eebcbc5dee636217080dca9c129ecce9c5c6789043bc4767c343cb7365e5d4f23ff6a4885914a7bceb3e947f9bdbf588c  pyradio-0.8.9.32.tar.gz
"