summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0aa99f201953a286b66db6e73922ec16fbd6bcd (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
41
# Maintainer:
# Contributor: Olaf Bauer <hydro@freenet.de>

_pkgname='dtv-scan-tables'
pkgname="$_pkgname-git"
pkgver=r1303.7098bdd
pkgrel=1
pkgdesc="Digital TV scan tables"
url="https://git.linuxtv.org/dtv-scan-tables.git"
license=('GPL-2.0-only' 'LGPL-2.0-only')
arch=('any')

makedepends=(
  'git'
  'v4l-utils'
)

provides=('dtv-scan-tables')
conflicts=('dtv-scan-tables')

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  printf "r%s.%s" \
    "$(git rev-list --count HEAD)" \
    "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "$_pkgsrc"
  make dvbv3
}

package() {
  cd "$_pkgsrc"
  make PREFIX="$pkgdir/usr" DVBV5DIR=dvb install
  make PREFIX="$pkgdir/usr" install_v3
}