75 lines
2.3 KiB
Bash
75 lines
2.3 KiB
Bash
# Maintainer: Dan Ziemba <zman0900@gmail.com>
|
|
# Contributor: Benjamin Hedrich <kiwisauce (a) pagenotfound (dot) de>
|
|
|
|
# To enable hdhomerun, add 'libhdhomerun' to depends and '--enable-hdhomerun_client' to
|
|
# the configure command in build().
|
|
|
|
pkgname=tvheadend-git
|
|
_gitname='tvheadend-git'
|
|
pkgver=4.1.r2435.g6129d04a2
|
|
pkgrel=1
|
|
pkgdesc="TV streaming server for Linux"
|
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
|
|
url="https://tvheadend.org/"
|
|
license=('GPL3')
|
|
depends=('avahi' 'openssl' 'uriparser' 'ffmpeg' 'linuxtv-dvb-apps')
|
|
makedepends=('git' 'python')
|
|
optdepends=('xmltv: For an alternative source of programme listings')
|
|
provides=('tvheadend')
|
|
conflicts=('tvheadend' 'hts-tvheadend' 'hts-tvheadend-svn' 'tvheadend-git')
|
|
install=tvheadend.install
|
|
backup=('etc/conf.d/tvheadend')
|
|
|
|
source=("${_gitname}::git+https://github.com/tvheadend/tvheadend.git#branch=master"
|
|
"dvb-scan-tables::git+https://github.com/tvheadend/dtv-scan-tables.git#branch=tvheadend")
|
|
md5sums=('SKIP'
|
|
'SKIP')
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${_gitname}"
|
|
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
}
|
|
|
|
prepare() {
|
|
cd "${srcdir}"
|
|
_dvbscan="${_gitname}/data/dvb-scan"
|
|
cp -a "dvb-scan-tables" "${_dvbscan}"
|
|
rm -rf "${_dvbscan}/.git"
|
|
touch "${_dvbscan}/.stamp"
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${_gitname}"
|
|
./configure --prefix=/usr --mandir=/usr/share/man/man1 --release \
|
|
--python=python3 \
|
|
--disable-ffmpeg_static --enable-libav \
|
|
--disable-libx264_static --enable-libx264 \
|
|
--disable-libx265_static --enable-libx265 \
|
|
--disable-libvpx_static \
|
|
--disable-libtheora_static \
|
|
--disable-libvorbis_static \
|
|
--disable-libfdkaac_static \
|
|
--disable-libmfx_static --disable-qsv \
|
|
--disable-nvenc \
|
|
--disable-hdhomerun_static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_gitname}"
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
install -D -m 644 "${srcdir}/${_gitname}/rpm/tvheadend.service" \
|
|
"$pkgdir/usr/lib/systemd/system/tvheadend.service"
|
|
sed -i 's|/etc/sysconfig|/etc/conf.d|g' "$pkgdir/usr/lib/systemd/system/tvheadend.service"
|
|
|
|
install -d "$pkgdir/etc/conf.d"
|
|
cat << EOF > "$pkgdir/etc/conf.d/tvheadend"
|
|
# Configuration file for the tvheadend service.
|
|
|
|
MALLOC_ARENA_MAX=4
|
|
OPTIONS="-u hts -g video -6 --http_port 9981 --htsp_port 9982"
|
|
EOF
|
|
}
|
|
|