# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch] # Maintainer: Christopher Reimer pkgname=vdr-softhddevice pkgver=1.0.15 epoch=1 _vdrapi=2.4.7 pkgrel=2 pkgdesc="software and GPU emulated HD output device plugin for VDR" url="https://github.com/ua0lnj/vdr-plugin-softhddevice" arch=('x86_64' 'i686') license=('AGPL3') depends=('ffmpeg' 'freeglut' 'glew' 'mesa' "vdr-api=${_vdrapi}" 'xcb-util-wm' 'xorg-server') optdepends=('nvidia: Required for VDPAU decoding', 'vdr-xorg: Recommended way to start X.org server together with VDR') makedepends=('glm' 'glu' 'ffnvcodec-headers') _plugname=${pkgname//vdr-/} source=("$pkgname-$pkgver.tar.gz::https://github.com/ua0lnj/vdr-plugin-softhddevice/archive/v$pkgver.tar.gz" "50-$_plugname.conf") backup=("etc/vdr/conf.avail/50-$_plugname.conf") sha256sums=('7759b8e62960e125d316f34f17292e132f472a1a2af16f2fdb4d5282de8040c1' '67bb0c168042b27ead3f62a98f9b434d0164da5fe334a76ccc5dd061932d1952') prepare() { cd "${srcdir}/vdr-plugin-${_plugname}-$pkgver" # Disable OSS. Arch Linux doesn't ship OSS sed -i '/OSS /d' Makefile # Enable this to increase AV_INFO logging #sed -i 's/3000/500/g' Makefile # Enable this to compile with debug logging #sed -i 's/# -DDEBUG/-DDEBUG/g' Makefile } build() { cd "${srcdir}/vdr-plugin-${_plugname}-$pkgver" make } package() { cd "${srcdir}/vdr-plugin-${_plugname}-$pkgver" make DESTDIR="${pkgdir}" install install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf" }