aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tvheadend/APKBUILD
blob: d8d81599ba8fb4a2cfaf6f85d364c3dbb8a05785 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=tvheadend-git
_pkgname=andoma-tvheadend-fdc743f
pkgver=2.13
pkgrel=0
pkgdesc="TV Streaming server for linux"
url="http://www.lonelycoder.com/hts/tvheadend_overview.html"
arch="all"
license="GPL3"
depends=""
depends_dev="openssl-dev avahi-dev wget bash findutils"
makedepends="$depends_dev"
install="$pkgname.pre-install $pkgname.post-deinstall"
subpackages=""
source="saveas-https://github.com/andoma/tvheadend/tarball/master/$pkgname-$pkgver.tar.gz
tvheadend-git.initd
tvheadend-git.confd
"
_builddir="$srcdir"/$_pkgname
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 --release
        make || return 1
}
package() {
        cd "$_builddir"
	sed -i 's/\-T//g' support/posix.mk
	make 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
}

md5sums="97c51df1daca8db241dee8b9c55d0aad  tvheadend-git-2.13.tar.gz
4d6324b1b87890faf846ad95c2f3483c  tvheadend-git.initd
74749f3527418ddfd5671d5d5ad4dca4  tvheadend-git.confd"