summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c61cf717c386bace49c72f45287e8b2c63361e55 (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
42
43
44
45
46
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]

# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname=vdr-amlhddevice
pkgver=0
_gitver=3620e2eebc6df1c86a6a5bb291f11ddf2b1caac8
_vdrapi=2.2.0
pkgrel=1
pkgdesc="Output device for Amlogic SOCs"
url="http://projects.vdr-developer.org/projects/plg-amlhddevice"
arch=('armv7h')
license=('GPL2')
depends=('aml-libs-c1' 'ffmpeg' 'mesa' "vdr-api=${_vdrapi}")
makedepends=('git')
_plugname=${pkgname//vdr-/}
source=("git://projects.vdr-developer.org/vdr-plugin-amlhddevice.git#commit=$_gitver"
        "amldevice_arch_compat.diff"
        "50-$_plugname.conf")
backup=("etc/vdr/conf.avail/50-$_plugname.conf")
md5sums=('SKIP'
         'b727e72154fe4fcb6c1f037fa90d4dcc'
         'c613f659043adf5ff3a7efa2388f5859')

pkgver() {
  cd "${srcdir}/vdr-plugin-${_plugname}"
  git tag 'v0' 3620e2eebc6df1c86a6a5bb291f11ddf2b1caac8
  git describe --tags | sed 's/-/_/g;s/v//'
}

prepare() {
  cd "${srcdir}/vdr-plugin-${_plugname}"
  patch -p1 -i "$srcdir/amldevice_arch_compat.diff"
}


build() {
  cd "${srcdir}/vdr-plugin-${_plugname}"
  make
}

package() {
  cd "${srcdir}/vdr-plugin-${_plugname}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
}