summaryrefslogtreecommitdiff
path: root/community/linuxtv-dvb-apps/PKGBUILD
blob: b3c49f876f06a962f2fd2a3fd503e190c44a4d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $Id: PKGBUILD 102879 2013-12-23 10:19:57Z bgyorgy $
# 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=1504
pkgrel=1
_hgrev=d40083fff895
pkgdesc='Linux DVB API applications and utilities'
arch=('i686' 'x86_64')
url='http://www.linuxtv.org/'
license=('GPL')
depends=('glibc')
makedepends=('mercurial')
source=("hg+http://linuxtv.org/hg/dvb-apps/#revision=$_hgrev")
sha256sums=('SKIP')

pkgver() {
  cd "dvb-apps"
  echo $(hg identify -n)
}

prepare() {
  cd "dvb-apps"
  # Fix build
  sed -i '/$(sharedir)\/dvb\//d' util/scan/Makefile
}

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

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