# $Id$
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Camille Moncelier <pix@devlife.org>

pkgname=linuxtv-dvb-apps
pkgver=1505
pkgrel=1
_hgrev=3d43b280298c
pkgdesc='Linux DVB API applications and utilities'
arch=('i686' 'x86_64')
url='http://www.linuxtv.org/'
license=('GPL')
depends=('glibc')
source=("http://linuxtv.org/hg/dvb-apps/archive/$_hgrev.tar.bz2")

prepare() {
  cd "dvb-apps-$_hgrev"
}

build() {
  cd "dvb-apps-$_hgrev"
  make
}

package() {
  cd "dvb-apps-$_hgrev"
  make DESTDIR="$pkgdir" install
  # Remove conflict with xbase (FS#37862)
  mv "$pkgdir"/usr/bin/{zap,dvbzap}
}
md5sums=('e2cc2ca0c429f6cb73d0f73b29dd70e8')