main/postmarketos-qemu-common: new aport

This package contains common config shared between all qemu "devices"

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6508
Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6508
This commit is contained in:
Clayton Craft 2025-05-13 21:24:48 -07:00 committed by fossdd
parent dc1b38ab57
commit 6272fcbf15
No known key found for this signature in database
GPG key ID: BB8C8A81C6452A88
3 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,45 @@
pkgname=postmarketos-qemu-common
pkgdesc="Common package for Qemu 'devices'"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64 x86_64 riscv64"
options="!check !archcheck !tracedeps"
subpackages="
$pkgname-mce
$pkgname-sway
$pkgname-x11
"
source="
mce-display-blanking.conf
resolution-qemu-X11.conf
"
package() {
mkdir -p "$pkgdir"
}
mce() {
pkgdesc="Prevents screen blanking for UI's using mce (Glacier, Asteroid)"
install_if="$pkgname=$pkgver-r$pkgrel mce"
install -Dm644 "$srcdir"/mce-display-blanking.conf \
"$subpkgdir"/etc/mce/50display-blanking.conf
}
sway() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-sway"
depends="postmarketos-ui-sway-logo-key-alt"
mkdir "$subpkgdir"
}
x11() {
install_if="$pkgname=$pkgver-r$pkgrel xorg-server"
install -Dm644 "$srcdir"/resolution-qemu-X11.conf \
"$subpkgdir"/usr/share/X11/xorg.conf.d/10-resolution-qemu-X11.conf
}
sha512sums="
99d32eed6c5cda59e91516e982c5bd5165ff718133e2411a0dbba04e2057d1dfad49a75e5cc67140d0e0adcbe1383671bd2892335929b782a5b19f5472e635ad mce-display-blanking.conf
bfff3ebf11abb43d8ea45e778c19554b1bc8ef9e694d8160daaac0ef906b4d8eda772e5f984033cce52ebddfbbe76e5340c6805e68f967994a3240c1e10c8b5b resolution-qemu-X11.conf
"

View file

@ -0,0 +1 @@
/system/osso/dsm/display/display_never_blank=1

View file

@ -0,0 +1,6 @@
Section "Screen"
Identifier "Virtual-1"
SubSection "Display"
Modes "800x600"
EndSubSection
EndSection