new blfs: media-libs/libva-2.22.0
This commit is contained in:
42
media-libs/libva-2.22.0.PKGBUILD
Normal file
42
media-libs/libva-2.22.0.PKGBUILD
Normal file
@@ -0,0 +1,42 @@
|
||||
pkgname=libva
|
||||
pkgver=2.22.0
|
||||
pkgdesc='Video Acceleration (VA) API for Linux'
|
||||
arch=(x86_64)
|
||||
homepage=https://01.org/linuxmedia/vaapi
|
||||
license=(MIT)
|
||||
depends=(
|
||||
libdrm
|
||||
wayland
|
||||
)
|
||||
makedepends=(
|
||||
meson
|
||||
libglvnd
|
||||
mesa
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/intel/libva/archive/${pkgver}/${sources[0]}")
|
||||
md5sums=("8dba13313d724b5e930f06e65b7437e2")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
meson setup --prefix=/usr \
|
||||
--buildtype=release \
|
||||
-D driverdir="/usr/lib/va/drivers" \
|
||||
-D with_x11=no \
|
||||
-D with_wayland=yes \
|
||||
-D with_glx=no \
|
||||
-D enable_docs=false \
|
||||
-D disable_drm=false \
|
||||
build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "${pkgdir}"
|
||||
install -Dm 644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Reference in New Issue
Block a user