blob: f122472d510783d9238420e9b7de70e2bc132fd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 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.r1672.g3927788
pkgrel=2
pkgdesc="TV streaming server for Linux"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://tvheadend.org/"
license=('GPL3')
depends=('avahi' 'openssl' 'python2' 'uriparser' 'ffmpeg' 'linuxtv-dvb-apps')
makedepends=('git')
optdepends=('xmltv: For an alternative source of programme listings')
provides=('tvheadend')
conflicts=('tvheadend' 'hts-tvheadend' 'hts-tvheadend-svn' 'tvheadend-git')
install=tvheadend.install
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"
'tvheadend.service')
md5sums=('SKIP'
'SKIP'
'b546f4486f0d28bea13ad1fb676acb27')
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 --python=python2 --release \
--disable-libffmpeg_static --disable-libx264_static \
--disable-libx265_static --enable-libx265 \
--enable-vdpau --enable-nvenc \
--disable-libmfx_static --enable-libmfx \
--disable-hdhomerun_static
make
}
package() {
cd "${srcdir}/${_gitname}"
make DESTDIR="$pkgdir/" install
install -D -m 644 "$srcdir/tvheadend.service" "$pkgdir/usr/lib/systemd/system/tvheadend.service"
}
|