pmaports/device/community/soc-qcom-sc7180/APKBUILD

54 lines
1.3 KiB
Text

# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=soc-qcom-sc7180
pkgdesc="Common package for Qualcomm Snapdragon 7cx devices"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="aarch64"
options="!check !archcheck !tracedeps"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-woa:nonfree_firmware_woa
$pkgname-vulkan
"
source="00-sc7180-nonstrict-iommu.sh"
package() {
mkdir -p "$pkgdir"
install -Dm755 "$srcdir"/00-sc7180-nonstrict-iommu.sh \
-t "$pkgdir"/usr/share/mkinitfs/hooks
}
nonfree_firmware() {
pkgdesc="Modem, WiFi firmware"
depends="rmtfs rmtfs-openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
mkdir "$subpkgdir"
}
nonfree_firmware_woa() {
pkgdesc="Modem, WiFi firmware"
depends="
$pkgname-nonfree-firmware
pd-mapper
pd-mapper-openrc
tqftpserv
tqftpserv-openrc
"
install="$subpkgname.post-install $subpkgname.post-upgrade"
mkdir "$subpkgdir"
}
vulkan() {
pkgdesc="Vulkan support for freedreno"
install_if="$pkgname=$pkgver-r$pkgrel vulkan-loader"
depends="mesa-vulkan-freedreno"
mkdir "$subpkgdir"
}
sha512sums="
8d76fc3ed580e5950bcb8561c08bf56c52b8693605dee04f174a49154e270b5ac6d4303bc00499864f30c352e9a0c06c449253e0b8ba974e3d85554f306c84fc 00-sc7180-nonstrict-iommu.sh
"