aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvdpau/APKBUILD
blob: 32b52ea8db01bb4b2af0ef2c7f74c5507e727059 (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
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvdpau
pkgver=1.4
pkgrel=0
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/libvdpau-$pkgver/libvdpau-libvdpau-$pkgver.tar.gz"
builddir="$srcdir/libvdpau-libvdpau-$pkgver"

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

check() {
	ninja -C output test
}

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

sha512sums="3f8f0fecbc6abf398ac1fac245cad9d1c1ebc99329cbae4ba65eff2f392c986b0d0cf37b1c9743ce097e1fd3644b617401893237eba99e91e6876a4e8be0b9d9  libvdpau-libvdpau-1.4.tar.gz"