2023-07-20 05:39:26 +00:00
|
|
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
2022-10-11 03:10:37 +00:00
|
|
|
pkgname=soc-mediatek-mt8183
|
|
|
|
pkgdesc="Common package for Mediatek MT8183 devices"
|
2023-05-18 12:13:15 +00:00
|
|
|
pkgver=2
|
2023-07-20 05:39:26 +00:00
|
|
|
pkgrel=1
|
2022-10-11 03:10:37 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="BSD-3-Clause"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="soc-qcom-msm8916"
|
2023-05-18 12:13:15 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-firmware
|
|
|
|
$pkgname-x11
|
|
|
|
"
|
2022-10-11 03:10:37 +00:00
|
|
|
source="
|
|
|
|
xorg.conf.d/11-modesetting.conf
|
|
|
|
xorg.conf.d/13-panfrost-swapped-dri-nodes.conf
|
|
|
|
"
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2023-05-18 12:13:15 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-10-11 03:10:37 +00:00
|
|
|
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
|
|
|
|
"
|