From 2e53610e90cf4c3084ad4a1dae5f3ee3279f65b5 Mon Sep 17 00:00:00 2001 From: Singustromo Date: Thu, 19 Jan 2023 05:09:44 +0100 Subject: [PATCH] New package: radio-sh-2.0 --- srcpkgs/radio-sh/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/radio-sh/template diff --git a/srcpkgs/radio-sh/template b/srcpkgs/radio-sh/template new file mode 100644 index 000000000000..09fa6efa907e --- /dev/null +++ b/srcpkgs/radio-sh/template @@ -0,0 +1,25 @@ +# Template file for 'radio-sh' +pkgname=radio-sh +version=2.0 +revision=9 +build_style=fetch +hostmakedepends="tar gzip" +depends="bash>=5.1.016_2 procps-ng>=3.3.17_2 mpv>=0.35.0_2 socat>=1.7.4.4_1 jq>=1.6_2" +short_desc="Conveniently play internet radio streams, with simplicity in mind" +maintainer="Singustromo " +license="GPL-3.0-or-later" +homepage="https://git.nevrlands.de/radio-sh/about/" +distfiles="https://git.nevrlands.de/$pkgname/snapshot/${pkgname}-${version}.${revision}.tar.gz" +checksum=b2bf165fbe23e86144a2565fe77ba04706d539c74e294f0fa333261bf6a235cf +tags="bash script radio stream radiostream" +mutable_files="/etc/xdg/radio-sh/radio_config.json" + +do_extract() { + tar --strip-components 1 --no-same-owner --extract --file \ + ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.${revision}.tar.gz \ + --directory ${wrksrc} +} + +do_install() { + vbin $wrksrc/radio +}