1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
2 # Based on package hts-tvheadend-svn by azleifel <azleifel at googlemail dot com>
7 pkgdesc="TV streaming server for Linux"
9 url="http://www.lonelycoder.com/hts/tvheadend_overview.html"
11 depends=('avahi' 'openssl')
13 optdepends=('xmltv: For an alternative source of programme listings')
14 provides=('tvheadend')
15 conflicts=('hts-tvheadend' 'hts-tvheadend-svn')
16 backup=('etc/conf.d/tvheadend')
17 install=tvheadend.install
18 source=('tvheadend.conf.d' 'tvheadend.rc.d')
19 md5sums=('854845963c364cdcefcbd473f713179b'
20 '4f67a96a44996134d9814dc52c461d12')
22 _gitroot="git://github.com/andoma/tvheadend.git"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 ./configure --prefix=/usr --release
48 cd "$srcdir/$_gitname-build"
50 sed -i 's|/share/man1|/share/man/man1|' support/posix.mk
51 make DESTDIR="$pkgdir/" install
53 install -D -m 755 "$srcdir/tvheadend.rc.d" "$pkgdir/etc/rc.d/tvheadend"
54 install -D -m 644 "$srcdir/tvheadend.conf.d" "$pkgdir/etc/conf.d/tvheadend"