blob: badb13b637a2a574530ac6247b2144c65b78de02 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=tvheadend
pkgver=4.2.7
pkgrel=2
pkgdesc="TV Streaming server for linux"
url="http://tvheadend.org/"
arch="all"
license="GPL-3.0-only"
depends=""
depends_dev=""
makedepends="$depends_dev findutils bash git python2 linux-headers
bsd-compat-headers coreutils openssl-dev ffmpeg-dev gettext-dev
zlib-dev libhdhomerun-dev cmake"
pkgusers="tvheadend"
pkggroups="tvheadend"
install="$pkgname.pre-install"
options="!check" # no testsuites
subpackages="$pkgname-doc $pkgname-openrc
$pkgname-dvb-scan:dvb_scan:noarch
$pkgname-satellites-xml:satellites_xml:noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/tvheadend/tvheadend/archive/v$pkgver.tar.gz
https://dev.alpinelinux.org/archive/tvheadend/satellites-20180626.xml
$pkgname.initd
"
builddir="$srcdir/tvheadend-$pkgver"
build() {
cd "$builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-libav \
--enable-hdhomerun_client \
--disable-hdhomerun_static \
--disable-ffmpeg_static \
--disable-libx264_static \
--disable-libx265_static \
--disable-libvpx_static \
--disable-libtheora_static \
--disable-libvorbis_static \
--disable-libfdkaac_static \
--disable-libmfx_static \
--nowerror
make
}
check() {
msg "Running testsuites"
"$builddir"/build.linux/tvheadend --version > /dev/null
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
install -m 755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -d -m 755 -o $pkgusers -g $pkggroups \
"$pkgdir"/etc/tvheadend
install -d -m 755 -o $pkgusers -g $pkggroups \
"$pkgdir"/var/lib/tvheadend \
"$pkgdir"/var/log/tvheadend
}
dvb_scan() {
pkgdesc="$pkgname dvb scan files"
depends="$pkgname !$pkgname-satellites_xml"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/tvheadend/data
mv "$pkgdir"/usr/share/tvheadend/data/dvb-scan \
"$subpkgdir"/usr/share/tvheadend/data
}
satellites_xml() {
pkgdesc="$pkgname sattelites from http://satellites-xml.eu"
depends="$pkgname !$pkgname-dvb_scan"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/tvheadend/data/dvb-scan/dvb-s
msg "Generating sattelites from satellites.xml"
support/sat_xml_scan.py "$srcdir"/satellites-*.xml \
"$subpkgdir"/usr/share/tvheadend/data/dvb-scan/dvb-s
}
sha512sums="14dd4f452a785359614e2dfe3c210543e0bddf011b8bb994a282cfcff3f3e2573e48636e4c778c7fea39c01318053211e674911fcec3ad5f7b536bdd9e5f5aa9 tvheadend-4.2.7.tar.gz
d0f0b090ee5bf084a478bb35c944d8e008d300d29db2a8dea3feadeee6226da0eff154ccee482fc10beab30a0b6fc176d5b7578f21fa187d3ea091f599621752 satellites-20180626.xml
8b6463996b9635654cba4458e58cef2970e31c98c1469ccc694276e5542eec451a0859a972b6c056b53d97deb2cef55d701fb1ee3ca980b1606f9126a88ab64f tvheadend.initd"
|