summaryrefslogtreecommitdiff
path: root/community/mumudvb/APKBUILD
blob: f58c60cd9b7f1734f58982c6cc6ddbdf901cab01 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mumudvb
_pkgname=MuMuDVB
pkgver=2.1.0
pkgrel=0
pkgdesc="A DVB IPTV streaming software"
url="http://mumudvb.braice.net/"
arch="all"
license="GPL2"
depends=""
makedepends="automake autoconf libtool linux-headers m4 libdvbcsa-dev asciidoc gettext-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
pkgusers="mumudvb"
source="$pkgname-$pkgver.tar.gz::https://github.com/braice/MuMuDVB/archive/$pkgver.tar.gz
musl-error-h.patch
$pkgname.initd
$pkgname.confd"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	libtoolize --force
	aclocal && autoheader
	automake --force-missing --add-missing
	autoreconf -i -f
	./configure --prefix=/usr
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/var/run/mumudvb
	chown $pkgusers "$pkgdir"/var/run/mumudvb
	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

	mkdir -p "$pkgdir"/etc/$pkgname
}

doc() {
	pkgdesc="$pkgname documentation"
	_docdir="configuration_examples diagrams html transcode"
	cd "$builddir"/doc
	make doc || return 1
	mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
	for doc in $_docdir; do
		mv $doc "$subpkgdir"/usr/share/doc/$pkgname
	done
}

sha512sums="e300d0f9624a7a5d108ded303b11ef7f399968357540f681ae772efe2a36d32883c69f20e41f8372c0f9c39393c71f2eddb04c59bfadf71a0f575ea160a27cf2  mumudvb-2.1.0.tar.gz
83228d1ea51b892779d284e443477332f92bc27d5806294774ff6eb93c5b4896dbd04367559a03268aa9994f8555c748e82075e4b86b01866a65662bf5c00824  musl-error-h.patch
a59a282e04e72bb75e365f36dd4af7560826e8803f0ffa0244c59b2c88bf3e822d846358ababc74aa04de4758880a5bd53e02e3537b8ced0a23aea5360832709  mumudvb.initd
777096785f71f22e9b1462d8bd9a0dba39bda63fa9493d8431140cc09addfac6ce9f962c60aa50b6f331d8ecbaef8e1340cf401aa3caeb743d3a396326f28efa  mumudvb.confd"