# Maintainer: CarlosRFS pkgname=libva-v4l2-request pkgver=2019.03.r9.ga3c2476 pkgrel=1 pkgdesc="LibVA implementation for the Linux Video4Linux2 Request API" arch=(riscv64) url="https://github.com/bootlin/libva-v4l2-request" license=('LGPL2.1' 'MIT') depends=('libva>=2.1.0' 'libdrm>=2.4.52') makedepends=(meson) source=($pkgname::git+https://github.com/bootlin/$pkgname.git \ http://patch-diff.githubusercontent.com/raw/bootlin/libva-v4l2-request/pull/38.patch ) sha256sums=('SKIP' 'SKIP') prepare() { cd $pkgname git apply ../38.patch } pkgver() { cd "$pkgname" git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { meson --prefix /usr --buildtype=plain $pkgname build ninja -C build } package() { DESTDIR="$pkgdir" ninja -C build install cd "$srcdir/$pkgname" mkdir -p "$pkgdir/usr/share/licenses/$pkgname" install -Dm644 COPYING* "$pkgdir/usr/share/licenses/$pkgname/" }