2022-06-18 15:15:06 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
|
|
|
pkgname=device-google-nyan-blaze
|
|
|
|
pkgdesc="HP Chromebook 14 G3"
|
2023-05-11 09:33:08 +00:00
|
|
|
pkgver=2
|
|
|
|
pkgrel=0
|
2022-06-18 15:15:06 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
alsa-ucm-conf
|
2023-05-11 09:33:08 +00:00
|
|
|
depthcharge-tools
|
|
|
|
linux-google-nyan>=6.1.27-r0
|
2022-06-18 15:15:06 +00:00
|
|
|
postmarketos-base
|
2023-05-11 09:33:08 +00:00
|
|
|
postmarketos-update-depthcharge-kernel
|
2022-06-18 15:15:06 +00:00
|
|
|
"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-mpv-wayland:mpv_wayland
|
|
|
|
$pkgname-mpv-xorg:mpv_xorg
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-sway
|
|
|
|
"
|
2023-05-11 09:36:30 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2022-06-18 15:15:06 +00:00
|
|
|
source="
|
|
|
|
30-xusb-firmware.files
|
|
|
|
deviceinfo
|
|
|
|
modprobe.d/gpu.conf
|
|
|
|
mpv/mpv.conf.wayland
|
|
|
|
mpv/mpv.conf.xorg
|
|
|
|
sway/tinydm/10-no-hardware-cursor.sh
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
|
|
|
# Block nouveau as it is in very bad condition
|
|
|
|
install -Dm644 "$srcdir"/gpu.conf \
|
|
|
|
"$pkgdir"/etc/modprobe.d/gpu.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi/BT, USB and GPU firmware"
|
|
|
|
depends="linux-firmware-mrvl linux-firmware-nvidia"
|
|
|
|
|
|
|
|
# Firmware needed to boot from USB
|
|
|
|
install -Dm644 "$srcdir"/30-xusb-firmware.files \
|
2023-02-18 23:28:22 +00:00
|
|
|
"$subpkgdir"/usr/share/mkinitfs/files/30-xusb-firmware.files
|
2022-06-18 15:15:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mpv_wayland() {
|
|
|
|
# Looks like wayland libs are installed with some x11 UIs too, so match wlroots here
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel mpv wlroots"
|
|
|
|
install -Dm644 "$srcdir"/mpv.conf.wayland \
|
|
|
|
"$subpkgdir"/etc/mpv/mpv.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
mpv_xorg() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel mpv xorg-server"
|
|
|
|
install -Dm644 "$srcdir"/mpv.conf.xorg \
|
|
|
|
"$subpkgdir"/etc/mpv/mpv.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
sway() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-sway"
|
|
|
|
install -Dm755 "$srcdir"/10-no-hardware-cursor.sh \
|
|
|
|
"$subpkgdir"/etc/tinydm.d/env-wayland.d/10-no-hardware-cursor.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
793688374d77efaf050c187d296d7fd55243773a1257b4d8adfa4cda50d4c0cacc035fb3d419a4b608989ed920636048680d900afe8a712f2166edf51552087a 30-xusb-firmware.files
|
2023-05-12 06:53:40 +00:00
|
|
|
2b6fbed60543c0c0e975ce9393259f0c770a1bf86a96f7f22aba70b8b2760c83660f7cea5851e6d0068fde661ec28bc30a93813bacf3d0cc4c3c2a467eef0b8f deviceinfo
|
2022-06-18 15:15:06 +00:00
|
|
|
e6c5382b6f7dd10f350136d65a714de3ae337978c3ca88e63f016b4a42be87b422d2388fbf6d6a2feba15516fb9b409f6c5ff08968829e6fc2d1e8aeb9d3c508 gpu.conf
|
|
|
|
8f9dc3c7caeab6c5321dc2bf498f1a03a793f23cb776763316bc356b9d433d7a3337e61154069464dcda200bf390b99f3be8f657a40c6d2f6be3cbc6fb751080 mpv.conf.wayland
|
|
|
|
d6bc39df48ba0e985a796426039205335adf1c91b9c150b05a4239339fc78b1748b3a83c699de69e9a5829f29573a323f40788da58ed15b1951de1eab7e31c3d mpv.conf.xorg
|
|
|
|
78e566bf3a597b9b5f73f686feb93ae61d1bed350366428d74c7735f1f82ab390f47ba9deb9d21e8dfcee251dc6178956838ca1b34838bb0a7d740be0e2c8330 10-no-hardware-cursor.sh
|
|
|
|
"
|