summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92675915b2088ebc45e152475b0190dbf4cf287d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Christopher Snowhill <kode54@gmail.com>
# Contributor: Andrius Lukosevicius <niobium93@gmail.com>

_pkgname=obs-vaapi
pkgname=obs-vaapi-git
pkgver=0.1.0.r18.geb89a9e
pkgrel=1
pkgdesc="OBS Studio VAAPI support via GStreamer (git version)"
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/fzwoch/obs-vaapi"
license=('GPL2')
depends=('obs-studio' 'gst-plugins-base-libs' 'gstreamer-vaapi' 'gst-plugin-va')
makedepends=('git' 'meson')
conflicts=('obs-vaapi')
provides=('obs-vaapi')
source=("git+https://github.com/fzwoch/obs-vaapi.git")
sha256sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	meson "$srcdir/$_pkgname" build --prefix=/usr --buildtype=release
	ninja -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
	# clean up after the new git design that tries to install to home directory
	# partially fixed by the --prefix=/usr above
	mkdir -p "$pkgdir/usr/lib/obs-plugins"
	mv "$pkgdir/usr/obs-vaapi.so" "$pkgdir/usr/lib/obs-plugins"
}