aboutsummaryrefslogtreecommitdiffstats
path: root/community/tvheadend/APKBUILD
blob: 93a833950ce40889271fb7a5fab378cee46b0f6a (plain) (blame)
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
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=tvheadend
pkgver=4.2.8
pkgrel=3
pkgdesc="TV Streaming server for linux"
url="https://tvheadend.org/"
arch="all"
license="GPL-3.0-only"
makedepends="findutils bash git python3 linux-headers bsd-compat-headers
	coreutils openssl-dev ffmpeg-dev gettext-dev zlib-dev cmake uriparser-dev"
pkgusers="tvheadend"
pkggroups="video"
install="$pkgname.pre-install"
options="!check" # no testsuites
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tvheadend/tvheadend/archive/v$pkgver.tar.gz
	$pkgname.initd
	gcc-10.patch
	"

build() {
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-libav \
		--disable-ffmpeg_static \
		--disable-libx264_static \
		--disable-libx265_static \
		--disable-libvpx_static \
		--disable-libtheora_static \
		--disable-libvorbis_static \
		--disable-libfdkaac_static \
		--disable-libmfx_static \
		--python=python3 \
		--nowerror
	make
}

package() {
	make 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
}

sha512sums="e629ffe1802e76b5121d5c22d11be86640f17816a5e902ed4842b2fd21df506d00d9caebafd931d71995e9d9049cb675c032478c9bed4f1ce82fc3f255f6166f  tvheadend-4.2.8.tar.gz
8b6463996b9635654cba4458e58cef2970e31c98c1469ccc694276e5542eec451a0859a972b6c056b53d97deb2cef55d701fb1ee3ca980b1606f9126a88ab64f  tvheadend.initd
34ea7d896c68428a73e8a4e31f898c638f9b9867bc0a9e8a32dd6bbda7ffd3527889d8469113c2897020ceecb989020baf56cf7db99beadc19e6710e388007b4  gcc-10.patch"