From c33da949862ed2b3a8788a44673f4b84a34f0c80 Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Sat, 9 Dec 2023 05:44:34 +0300 Subject: [PATCH] pyradio: update to 0.9.2.20, disable self-update, add deps, adopt --- srcpkgs/pyradio/template | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/srcpkgs/pyradio/template b/srcpkgs/pyradio/template index 6db8b1ed691c1..4e63852f7b27e 100644 --- a/srcpkgs/pyradio/template +++ b/srcpkgs/pyradio/template @@ -1,21 +1,30 @@ # Template file for 'pyradio' pkgname=pyradio -version=0.9.2.13 -revision=2 -build_style=python3-module -hostmakedepends="python3-setuptools" -depends="python3-requests python3-dnspython python3-psutil python3-rich" +version=0.9.2.20 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-wheel" +depends="python3-requests python3-dnspython python3-psutil python3-rich + python3-dateutil python3-netifaces" short_desc="Curses based internet radio player" -maintainer="Eloi Torrents " +maintainer="chrysos349 " license="MIT" homepage="https://www.coderholic.com/pyradio/" changelog="https://raw.githubusercontent.com/coderholic/pyradio/master/Changelog" distfiles="https://github.com/coderholic/pyradio/archive/${version}.tar.gz" -checksum=e1cdbcd01c5abc25e90d83980732277e942cc64f635751b851f4f3fec23315c7 +checksum=af9066069bd6f2467e8d66812ead72acbf6e3e5bacc1ce07ba47a59af13598c9 make_check=no # pytest reports "no tests ran" +post_patch() { + vsed -e 's/distro = None/distro = Void Linux/' -i pyradio/config +} + post_install() { - vman pyradio.1 - vlicense LICENCE + for m in docs/*.1; do + vman $m + done + vlicense LICENSE + vinstall devel/pyradio.desktop 644 /usr/share/applications + vinstall devel/pyradio.png 644 /usr/share/icons/hicolor/512x512/apps vdoc "${FILESDIR}/README.voidlinux" }