# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=soc-qcom-sc7280
pkgdesc="Common package for Qualcomm SC7280/SM7325/QCM6490 devices"
pkgver=1
pkgrel=1
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="aarch64"
options="!check !archcheck !tracedeps"
depends="
	bootmac
	linux-firmware-ath11k
	msm-modem
	msm-modem-uim-selection
	pd-mapper
	pd-mapper-openrc
	swclock-offset
	tqftpserv
	tqftpserv-openrc
"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="
	$pkgname-qbootctl
	$pkgname-vulkan
"

package() {
	mkdir -p "$pkgdir"
}

qbootctl() {
	pkgdesc="Enable qbootctl mark-boot-successful service"
	depends="
		qbootctl
		qbootctl-openrc
	"
	install="$subpkgname.post-install $subpkgname.post-upgrade"
	mkdir "$subpkgdir"
}

vulkan() {
	pkgdesc="Vulkan support for freedreno"
	install_if="$pkgname vulkan-loader"
	depends="mesa-vulkan-freedreno"
	mkdir "$subpkgdir"
}

