summaryrefslogtreecommitdiffstats
path: root/main/tvheadend/APKBUILD
blob: 39b267676904d5fe0ceb13f31d7cde06aa894693 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=tvheadend
pkgver=3.4
pkgrel=1
pkgdesc="TV Streaming server for linux"
url="http://www.lonelycoder.com/hts/tvheadend_overview.html"
arch="all"
license="GPL3"
depends=""
depends_dev="openssl-dev libdvbcsa-dev curl-dev avahi-dev"
makedepends="$depends_dev python python findutils bash"
pkgusers="$pkgname"
pkggroups="$pkgname"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="https://github.com/tvheadend/tvheadend/archive/v$pkgver.tar.gz
	tvheadend.initd
	tvheadend.confd
"
_builddir="$srcdir/$pkgname-3.4"

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 \
		--release \
                --enable-dvbcsa \
		--disable-libav \
                || return 1
        make || return 1
}

package() {
        cd "$_builddir"
	make 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
	install -d -o $pkgname -g $pkgname \
		"$pkgdir/etc/$pkgname" || return 1
}

md5sums="40d150628147396a9e7a7291bdaa983d  v3.4.tar.gz
c68694d41e7ce0d94913e4332c060618  tvheadend.initd
17cf7dfaf27706409a004c246c1a2c3c  tvheadend.confd"
sha256sums="dbd67c1e7a46103d17e1317f126b1c167fc8dccf64c37243e911222bad73267f  v3.4.tar.gz
58891cd106314b7cb61f0ce68b58ebf58fd0bfe8b0cce03949b828ae90f53ee9  tvheadend.initd
4d4cb6071eac087d91858fedfaf1ce57bae78cab008658dc6b7a0d5c62d1762e  tvheadend.confd"
sha512sums="31effa4a5da77b9512a5639f9ff68a0d50a122edfc317bc237e11c8bc6a26ac9933d845abb9c4066824eb810cd28f1b7e4bbcb3fb06240a947da9661b6b999c4  v3.4.tar.gz
7727ae66b8c6cb8f8348e05229622251270366c781ced57539490910275e190a052b9438ff5e0e0ed515896e01460d451866396400c99e9e519a4a1176657f18  tvheadend.initd
20fa0004877d74e40e4e98023284f088432c3fec12ef8bfccde40a49a122669a8a6c2a6d5211517a8dd7fd3a9646b08c3296929360a20ad6683ba90a9086b734  tvheadend.confd"