pmaports/device/community/soc-mediatek-mt8183/APKBUILD

45 lines
1.2 KiB
Text
Raw Normal View History

# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=soc-mediatek-mt8183
pkgdesc="Common package for Mediatek MT8183 devices"
pkgver=2
pkgrel=1
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="aarch64"
options="!check !archcheck"
depends="soc-qcom-msm8916"
subpackages="
$pkgname-firmware
$pkgname-x11
"
source="
xorg.conf.d/11-modesetting.conf
xorg.conf.d/13-panfrost-swapped-dri-nodes.conf
"
package() {
mkdir -p "$pkgdir"
}
firmware() {
install_if="$pkgname=$pkgver-r$pkgrel linux-firmware-mediatek"
mkdir -p "$subpkgdir"/lib/firmware
ln -s /lib/firmware/mediatek/mt8183/scp.img \
"$subpkgdir"/lib/firmware/scp.img
}
x11() {
install_if="$pkgname xorg-server"
install -Dm644 "$srcdir"/11-modesetting.conf \
-t "$subpkgdir"/etc/X11/xorg.conf.d
install -Dm644 "$srcdir"/13-panfrost-swapped-dri-nodes.conf \
-t "$subpkgdir"/etc/X11/xorg.conf.d
}
sha512sums="
a0b1a1b2a08250d6069d283f574736ec9863c8fad882bc44ed3b61a026813d6ef39d0bd44b7fb57adb596e57f8366c905b468aef20d950fae732fef245e2e563 11-modesetting.conf
67e94b4afa16450b74ea966eaf56b71ae7a7d2bf56e06e4e9c1b51fde588475c3500090a8e48238b144d3ee688497302f2a1275c4bb3488cf3d2ae1faf345139 13-panfrost-swapped-dri-nodes.conf
"