wok-current annotate radiotray/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents e919c5a2742d
children
rev   line source
pascal@11227 1 # SliTaz package receipt.
pascal@11227 2
pascal@11227 3 PACKAGE="radiotray"
Hans-G?nter@21826 4 VERSION="0.7.3"
pascal@11227 5 CATEGORY="multimedia"
pascal@11227 6 SHORT_DESC="Online radio streaming player that runs on system tray."
pascal@11227 7 MAINTAINER="pankso@slitaz.org"
pascal@15003 8 LICENSE="GPL"
pascal@25460 9 WEB_SITE="https://radiotray.sourceforge.net/"
Hans-G?nter@21826 10
pascal@11227 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11227 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@11227 13
Hans-G?nter@21826 14 DEPENDS="gst-python python python-lxml"
Hans-G?nter@21826 15 BUILD_DEPENDS="gst-python-dev python python-dev python-xdg"
pascal@15003 16
pascal@24348 17 # What is the latest version available today?
pascal@24348 18 current_version()
pascal@24348 19 {
pascal@24348 20 wget -O - https://sourceforge.net/projects/radiotray/files/releases/ 2>/dev/null | \
pascal@24348 21 sed '/scope="row/!d;s|.*/radiotray-||;s|.tar.*||;q'
pascal@24348 22 }
pascal@24348 23
pascal@11227 24 # Rules to configure and make the package.
pascal@11227 25 compile_rules()
pascal@11227 26 {
pascal@15003 27 python setup.py install --prefix=/usr --root=$DESTDIR
pascal@11227 28 }
pascal@11227 29
pascal@11227 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11227 31 genpkg_rules()
pascal@11227 32 {
pascal@11227 33 mkdir -p $fs/usr/share
Hans-G?nter@21826 34
Hans-G?nter@21826 35 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21826 36 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21826 37 cp -a $install/usr/share/radiotray $fs/usr/share
pascal@11227 38 }