wok view pifmrds/receipt @ rev 25303

updated shared-mime-info and shared-mime-info-dev (1.15 -> 2.2)
author Hans-G?nter Theisgen
date Wed Jul 20 09:08:48 2022 +0100 (2022-07-20)
parents 65916402b97c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pifmrds"
4 GITHASH="c67306ea9b8d827f45e0d90279d367e97119bcb1"
5 VERSION=${GITHASH:0:7}
6 CATEGORY="system-tools"
7 SHORT_DESC="FM-RDS transmitter using the Raspberry Pi's PWM."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://github.com/ChristopheJacquet/PiFmRds"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
13 HOST_ARCH="arm"
14 TAGS="radio FM RDS"
15 SUGGESTED="sox"
17 DEPENDS="libsndfile"
18 BUILD_DEPENDS="wget libsndfile-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
24 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd $src/src
31 sed -i 's|^CC|# &|;/^ifeq/d;/^else/,/^endif/d;s|-march.*$||' Makefile
32 make
33 }
35 # SliTaz package testsuite
36 testsuite() {
37 readelf -Ah $src/src/pi_fm_rds
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/sbin
44 cp $src/src/pi_fm_rds $fs/usr/sbin
45 cat > $fs/usr/sbin/pifmogg.sh <<EOT
46 #!/bin/sh
48 fifo=/tmp/pifmogg$$
49 mkfifo $fifo
50 find $@ -name '*.ogg' -or -name '*.wav' -print | while read file ; do
51 echo "RT $(basename $file .ogg)" > $FIFO
52 cat $file
53 done | pi_fm_rds -audio - -ctl $fifo -freq ${FM_FREQ:-107.9} \
54 -ps ${RDS_SERVICE:-RASP-PI} -pi ${RDS_ID:-$(printf "%04X" $RANDOM)}
55 rm -f $fifo
56 EOT
57 chmod +x $fs/usr/sbin/pifmogg.sh
58 }