# libvdpau-sunxi
# depends on libcedrus
# depends on libvdpau
# dev branch depends on libcsptr-dev
local package_name="libvdpau-sunxi"
local package_repo="https://github.com/linux-sunxi/libvdpau-sunxi.git"
local package_ref="branch:master"
local package_upstream_version="0.5.1"
local package_builddeps="libpixman-1-dev pkg-config"
local package_install_target="libvdpau-sunxi1"
local package_component="${release}-desktop"

package_checkbuild()
{
	# we don't support running kernels < 3.13 on Stretch or Bionic
	[[ $release != xenial && $release != stretch && $release != bionic && $release != buster && $release != disco && $release != focal && $release != bullseye &&  $release != bookworm  ]]
}

package_checkinstall()
{
	[[ $LINUXFAMILY == sun*i  && $RELEASE != stretch && $RELEASE != bionic && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}
