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