# Contributor: Oleg Trenkin <o.trenkin@ya.ru>

buildarch=4

_pkgname=gst-plugin-cedar
pkgname=${_pkgname}-sun7i
pkgver=0.10.1
pkgrel=1
pkgdesc="GStreamer 0.10 plugin for Cedar h264 hardware encoding with no binary blobs"
arch=('armv7h')
license=('GPL2')
url="https://github.com/ebutera/gst-plugin-cedar"
depends=('gstreamer0.10-base')

_rev=908987a
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ebutera/${_pkgname}/tarball/${_rev}")
md5sums=('73c5cd32e32c0e10e3bebc2c576c23fc')

build() {
  cd $srcdir/ebutera-${_pkgname}-${_rev}
  autoreconf -fi
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/ebutera-${_pkgname}-${_rev}
  make DESTDIR="${pkgdir}" install
}