diff options
author | Christopher Reimer | 2015-06-08 11:09:01 +0200 |
---|---|---|
committer | Christopher Reimer | 2015-06-08 11:09:01 +0200 |
commit | 88ca9ea090171bce6868201b459e487a82213ff2 (patch) | |
tree | 9247748d7bcbaccb1d256e3307858aec7943db1b | |
download | aur-88ca9ea090171bce6868201b459e487a82213ff2.tar.gz |
Sync from VDR4Arch (https://github.com/VDR4Arch/vdr4arch/commit/3bf8a4492e3b973a559fd2c53855b231e25c7e74)
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6c7ef0f0dde4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = vdr-dvbapi + pkgdesc = A bridge between VDR and OScam. + pkgver = 2.2.0_14_g0489e01 + pkgrel = 1 + epoch = 1 + url = https://github.com/manio/vdr-plugin-dvbapi + arch = x86_64 + arch = i686 + arch = arm + arch = armv6h + arch = armv7h + license = GPL2 + makedepends = git + depends = gcc-libs + depends = libdvbcsa + depends = vdr-api=2.2.0 + backup = etc/vdr/conf.avail/50-dvbapi.conf + source = git://github.com/manio/vdr-plugin-dvbapi.git#commit=0489e0153ce26bfb92524d965c9a8985db69040a + sha256sums = SKIP + +pkgname = vdr-dvbapi + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1cf62c98cdec --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch] + +# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de> +pkgname=vdr-dvbapi +pkgver=2.2.0_14_g0489e01 +epoch=1 +_gitver=0489e0153ce26bfb92524d965c9a8985db69040a +_vdrapi=2.2.0 +pkgrel=1 +pkgdesc="A bridge between VDR and OScam." +url="https://github.com/manio/vdr-plugin-dvbapi" +arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h') +license=('GPL2') +depends=('gcc-libs' 'libdvbcsa' "vdr-api=${_vdrapi}") +makedepends=('git') +_plugname=$(echo $pkgname | sed 's/vdr-//g') +source=("git://github.com/manio/vdr-plugin-dvbapi.git#commit=$_gitver") +backup=("etc/vdr/conf.avail/50-$_plugname.conf") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/vdr-plugin-${_plugname}" + git describe --tags | sed 's/-/_/g;s/v//' +} + +build() { + cd "${srcdir}/vdr-plugin-${_plugname}" + sed -i 's/ -fdiagnostics-color=auto//g' Makefile + make LIBDVBCSA=1 +} + +package() { + cd "${srcdir}/vdr-plugin-${_plugname}" + make LIBDVBCSA=1 DESTDIR="$pkgdir" install + + mkdir -p "$pkgdir/etc/vdr/conf.avail" + echo "[$_plugname]" > "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf" +} |