aboutsummaryrefslogblamecommitdiffstats
path: root/main/libvdpau/APKBUILD
blob: e91d04046672c4b2cb07c1ccf365e1c7d7eb43b3 (plain) (tree)
1
2
3
4
5
6
7
8
                              
                                                   
                
          
        
                                                     
                                                   
          



                                                                                                
 
         
                      
               
                               

                                         




                                      



                      
                            


           
                      
                                                 

 
                                                                                                                                                                  
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvdpau
pkgver=1.3
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/$pkgver/libvdpau-$pkgver.tar.gz"

build() {
	cd "$builddir"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-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"