blob: a22dcd6c84c63a3807fe5acc7db70432ed7d834d (
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-git
_sha=ef89ef8b33f082f4829f8c57d9f656b312f45988
pkgver=20170211
pkgrel=0
pkgdesc="TV Streaming server for linux"
url="http://tvheadend.org/"
arch="all"
license="GPL3"
depends=""
depends_dev=""
makedepends="$depends_dev findutils bash git python2 linux-headers wget
bsd-compat-headers coreutils libressl-dev ffmpeg-dev gettext-dev
libhdhomerun-dev cmake"
pkgusers="tvheadend"
pkggroups="tvheadend"
install="$pkgname.pre-install"
subpackages="$pkgname-doc
$pkgname-dvb-scan:dvb_scan:noarch
$pkgname-satellites-xml:satellites_xml:noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/tvheadend/tvheadend/archive/${_sha}.tar.gz
$pkgname.initd
$pkgname.confd
satellites.xml
"
builddir="$srcdir/tvheadend-$_sha"
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 \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
# /usr/bin/install seems to fail to apply ownership
# when running from abuild on aarch64
mkdir -p "$pkgdir"/etc/"$pkgname" || return 1
chown "$pkgusers:$pkggroups" "$pkgdir/etc/$pkgname" || return 1
}
dvb_scan() {
pkgdesc="$pkgname dvb scan files"
depends="$pkgname !$pkgname-satellites_xml"
arch="noarch"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/tvheadend/data
mv "$pkgdir"/usr/share/tvheadend/data/dvb-scan \
"$subpkgdir"/usr/share/tvheadend/data || return 1
}
satellites_xml() {
pkgdesc="$pkgname sattelites from http://satellites-xml.eu"
depends="$pkgname !$pkgname-dvb_scan"
arch="noarch"
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 || return 1
}
sha512sums="776b4e624b43058e9c98c8f3e5dac2da97bcd035a821ff2dcbeb59c54251fd28e994502d9d41a9159d708e3b4e1188a4aec68205e4fd4d985c542b4265c701ab tvheadend-git-20170211.tar.gz
db275e263d52d0515544cc52836d99d1cf43b7c17a8037f897d5788e770b69be85cb709f71e7fae4d66c4a2cef8c4f9533fc2ab41490776ee437e4db4d27fa31 tvheadend-git.initd
dd55c56ffb0b090fc03537556340ac0dd17741d2ce9eeabb388af43b566e2764385affc2e4457fa7a6d94e44c491d7cf43c6b6d89dc1ba60dd9724cc488c0ef1 tvheadend-git.confd
c5de1572cd18d943558aa5dbc2179895506b64054006961e7b6c22a6cb262d2e931192a8e308b808a59f7d8bd325b1990ca33b6c5a01a92632d866dd4ec01830 satellites.xml"
|