# Contributor: Carlo Landmeter pkgname=tvheadend-git pkgver=0_git20131117 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 curl-dev avahi-dev" makedepends="$depends_dev findutils bash" pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" subpackages="$pkgname-doc" source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd" giturl="git://github.com/tvheadend/tvheadend.git" disturl="dev.alpinelinux.org:/archive/$pkgname/" _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 \ --enable-imagecache \ --enable-avahi \ --enable-zlib \ --enable-inotify \ --enable-kqueue \ --disable-libav \ || 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="a03d0f9b272c7525952deb064c1f4ea8 tvheadend-git-0_git20131117.tar.gz c68694d41e7ce0d94913e4332c060618 tvheadend-git.initd 17cf7dfaf27706409a004c246c1a2c3c tvheadend-git.confd" sha256sums="291faf47b795390df3dca436151a4a4e90a0a32d7948b669ab88f14caa1a5ba0 tvheadend-git-0_git20131117.tar.gz 58891cd106314b7cb61f0ce68b58ebf58fd0bfe8b0cce03949b828ae90f53ee9 tvheadend-git.initd 4d4cb6071eac087d91858fedfaf1ce57bae78cab008658dc6b7a0d5c62d1762e tvheadend-git.confd" sha512sums="0da26e2acdcb7ccb88f2713b87bc66aef1f158a54081bf5eea2436dafdcb4be2507a576fb390854a3ac62a77421b0e4663b50f51da984c0b75088487e41cdfc6 tvheadend-git-0_git20131117.tar.gz 7727ae66b8c6cb8f8348e05229622251270366c781ced57539490910275e190a052b9438ff5e0e0ed515896e01460d451866396400c99e9e519a4a1176657f18 tvheadend-git.initd 20fa0004877d74e40e4e98023284f088432c3fec12ef8bfccde40a49a122669a8a6c2a6d5211517a8dd7fd3a9646b08c3296929360a20ad6683ba90a9086b734 tvheadend-git.confd"