blob: 17678481aae23862f8ea617b4cdd90e48d8344e4 (
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
90
91
92
93
94
95
96
97
98
99
100
|
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=tvheadend-git
verbase=4.1
# stable versions have an even minor version number
pkgver=4.1_git20160218
pkgrel=0
pkgdesc="TV Streaming server for linux"
url="http://www.lonelycoder.com/hts/tvheadend_overview.html"
arch="all"
license="GPL3"
depends=""
depends_dev=""
makedepends="$depends_dev findutils bash git python linux-headers wget
bsd-compat-headers coreutils openssl-dev ffmpeg-dev gettext-dev"
pkgusers="$pkgname"
pkggroups="$pkgname"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dvb-scan:dvb_scan $pkgname-satellites-xml:satellites_xml"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
satellites.xml
include-syscall-h.patch"
giturl="https://github.com/tvheadend/tvheadend.git"
disturl="dev.alpinelinux.org:/archive/$pkgname"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-libav \
--disable-libffmpeg_static \
--disable-hdhomerun_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 -m755 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
install -d -o $pkgname -g $pkgname \
"$pkgdir/etc/$pkgname" || return 1
}
dvb_scan() {
pkgdesc="$pkgname dvb scan files"
depends="$pkgname"
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"
arch="noarch"
cd "$_builddir"
mkdir -p "$subpkgdir"/usr/share/tvheadend/data/satellites-xml/dvb-s
msg "Generating sattelites from satellites.xml"
support/sat_xml_scan.py "$srcdir"/satellites.xml \
"$subpkgdir"/usr/share/tvheadend/data/satellites-xml/dvb-s || return 1
}
md5sums="a5dddf84fbbb3047797f3bd49daea48b tvheadend-git-4.1_git20160218.tar.gz
67d1cfcaf2dc211d702abe67285f9333 tvheadend-git.initd
a409c44aecd93626a1a3a39306993c5d tvheadend-git.confd
b2a8bae3e81eb114d489c38c658bbd36 satellites.xml
779bca3d9d87cfd7624e1873205f2aa9 include-syscall-h.patch"
sha256sums="b16170910b38316383ec8be35ad66905a896476860ed7850a1ecb99572ad74e8 tvheadend-git-4.1_git20160218.tar.gz
cd0db26b3da95df7cd100e5e30b47cd884fa4a7d2cd27f1bee2f6bec0d6ad211 tvheadend-git.initd
671f7d410e51aaed4c93f284c180f646680f6b195b5bef47b3ae1fb99ed76dce tvheadend-git.confd
fd545f9d960eabaca431f54208e4ef5ae97a6868d2a1b3da65493e609e7b7564 satellites.xml
e4e06264552a8ee3b9b7e0b8196728d1c1e85cd9f6f70ef80dadd18310cddaad include-syscall-h.patch"
sha512sums="d2153a9735b1d4b863de773c52aded363700db3e6c9d64e26eea3268975391dcc883b803b08e7b86d35a73e316e7a39b408708818402077fdd88208a0c51f80a tvheadend-git-4.1_git20160218.tar.gz
41143b33e18000aad99d7b17433ac7935fa40a6980c4bf0733e5cc16e2948d18810ce198ca435791c93992ba1e39dc6d55ca6af33c49087557310fd31ad22447 tvheadend-git.initd
f81ace2fd2a86c561f70dca6c89a6217e632db01d5f5d1c6ccfd951c4a798a131767140c176a0a764fe3842363958b31fb2a707a871836795688136bc458f7d5 tvheadend-git.confd
905b98859d23a1d422a9de1bf002ad438bcd2ec30eb5804aa0701fab64ffeb140098db16b6522c8d0f602f44020232798650dd80fdffc15cd2b0225fd1f37501 satellites.xml
9069bf3ae1f1a500a6480b84e7f6398ab1a9c028cc2a136bce72f7ff7b2d35aa20ac1610630527f221aea57b5a45e82397e44a3fc9e203e752df1e29fe2ceff8 include-syscall-h.patch"
|