# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=vdr-plugin-dvbapi
pkgver=2.1.0
pkgrel=0
pkgdesc="VDR dvbapi plugin for use with OSCam"
url="https://github.com/manio/vdr-plugin-dvbapi"
arch="x86_64 x86"
license="GPL"
depends=""
depends_dev="vdr-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-lang"
source="vdr-plugin-dvbapi.tar.gz::https://github.com/manio/vdr-plugin-dvbapi/archive/v${pkgver}.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR=$pkgdir install || return 1
}

md5sums="68138fd2b405397ea47c773f0e8cd23b  vdr-plugin-dvbapi.tar.gz"
sha256sums="9c9a1afb1558ca03437df4ee108893c7beb026d81f96fb8f0eb3b8b95b9429d3  vdr-plugin-dvbapi.tar.gz"
sha512sums="2bb7a1a80dac691a189d575571a19694471c8dba4be31fe75fd10dcf6a8faecb0cc291531e03c0d43684db3384740e1db64bb13f9eaa6c5f482d8553f9c3da49  vdr-plugin-dvbapi.tar.gz"
