void-packages/srcpkgs/flvstreamer/template

33 lines
839 B
Bash
Raw Normal View History

2016-09-08 08:52:10 +00:00
# Template file for 'flvstreamer'
pkgname=flvstreamer
version=2.1c1
2016-09-08 09:11:52 +00:00
revision=2
2016-09-08 08:52:10 +00:00
wrksrc="${pkgname}"
short_desc="Command-line RTMP client"
maintainer="Juergen Buchmueller <pullmoll@t-online.de>"
license="GPL-2"
homepage="https://savannah.nongnu.org/projects/flvstreamer"
distfiles="http://download.savannah.gnu.org/releases/flvstreamer/source/${pkgname}-${version}.tar.gz"
checksum=e90e24e13a48c57b1be01e41c9a7ec41f59953cdb862b50cf3e667429394d1ee
2016-09-08 09:11:28 +00:00
conflicts="rtmpdump>=0"
2016-09-08 08:52:10 +00:00
do_build() {
sed -i Makefile \
-e "s;^\(CFLAGS.*=.*\);& $CFLAGS;" \
-e "s;^\(CC.*=.*\);CC=$CC;" \
-e "s;^\(LD.*=.*\);LD=$LD;" \
-e "s;^\(LDFLAGS.*=.*\);& $LDFLAGS;"
if [ -n "$CROSS_COMPILE" ]; then
CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
fi
make ${makejobs} posix
}
do_install() {
vbin flvstreamer
vbin rtmpsrv
vbin rtmpsuck
vbin streams
vdoc README
}