aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvdpau/APKBUILD
blob: 2a064e4586cf1cd5f84753b7c8658205bba41b9a (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
36
37
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvdpau
pkgver=1.3
pkgrel=2
pkgdesc="Hardware-accelerated video playback library"
url="https://gitlab.freedesktop.org/vdpau/libvdpau"
arch="all"
license="MIT"
makedepends="xorgproto libx11-dev libxext-dev meson"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/$pkgver/libvdpau-$pkgver.tar.gz"

build() {
	cd "$builddir"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Ddri2=true \
		. output
	ninja -C output
}

check() {
	cd "$builddir"
	ninja -C output test
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="7df0079c41ff7fd9f80e4500353c8154f57eb456f703aee4a9ff4d810185ef453fcf1b3925d13337b6765dbc86335e9700ef91f88b073c5bb5c8f9181447dea1  libvdpau-1.3.tar.gz"