updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tvheadend-git / PKGBUILD
blob830701bf7f1de864ea673c08d2c08f483564d413
1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
2 # Based on package hts-tvheadend-svn by azleifel <azleifel at googlemail dot com>
4 pkgname=tvheadend-git
5 pkgver=20111212
6 pkgrel=1
7 pkgdesc="TV streaming server for Linux"
8 arch=('i686' 'x86_64')
9 url="http://www.lonelycoder.com/hts/tvheadend_overview.html"
10 license=('GPL3')
11 depends=('avahi' 'openssl')
12 makedepends=('git')
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"
23 _gitname="tvheadend"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
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
44   make
47 package() {
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"