summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2300b64db00df4dc11245822c7eff5ecdd47e96b (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
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]

# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname=vdr-vdrboblight
pkgver=0.0.7
_vdrapi=2.2.0
pkgrel=1
pkgdesc="Boblight with data from softhddevice"
url="http://projects.vdr-developer.org/projects/plg-boblight"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('boblight' 'gcc-libs' "vdr-api=${_vdrapi}")
makedepends=('git')
replaces=('vdr-boblight')
conflicts=('vdr-boblight')
_plugname=${pkgname//vdr-/}
source=("https://projects.vdr-developer.org/git/vdr-plugin-boblight.git/snapshot/vdr-plugin-boblight-$pkgver.tar.bz2")
backup=("etc/vdr/conf.avail/50-$_plugname.conf")
md5sums=('2123b6b95bc48a190633297b38de6f25')

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

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

  mkdir -p "$pkgdir/etc/vdr/conf.avail"
  echo "[$_plugname]" > "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
}