# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=tvheadend pkgver=3.2.18 pkgrel=1 pkgdesc="TV Streaming server for linux" url="http://www.lonelycoder.com/hts/tvheadend_overview.html" arch="all" license="GPL3" depends="" depends_dev="openssl-dev bash findutils" makedepends="$depends_dev python" pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" subpackages="$pkgname-doc" source="https://github.com/downloads/tvheadend/tvheadend/tvheadend-$pkgver.tar.gz tvheadend.initd tvheadend.confd " _builddir="$srcdir/$pkgname-$pkgver" 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 \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --release \ --disable-avahi \ || return 1 make || return 1 } package() { cd "$_builddir" 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 install -d -o $pkgname -g $pkgname \ "$pkgdir/etc/$pkgname" || return 1 } md5sums="e1cf63cf2ae8b000e77eb313968f6b7b tvheadend-3.2.18.tar.gz 8b7da39441150596bdeb2456f7cf73ed tvheadend.initd 17cf7dfaf27706409a004c246c1a2c3c tvheadend.confd"