pmaports/device/community/device-google-snow/APKBUILD
Anton Bambura 1b585e3317
google-snow: enable GPU (MR 4843)
Enable GPU by removing all software rendering workarounds.

While at it also remove i3wm config, because it should be in ui package
if we want to make it default.

See https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/61093
2024-02-19 21:48:09 +01:00

64 lines
2 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-snow
pkgdesc="Samsung Chromebook"
pkgver=5
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
alsa-ucm-conf
depthcharge-tools
linux-postmarketos-exynos5
postmarketos-base
postmarketos-cros-common
postmarketos-update-depthcharge-kernel
"
makedepends="devicepkg-dev"
source="
deviceinfo
modules-initfs
ucm/HiFi.conf
ucm/Snow-I2S-MAX98090.conf
sway/foot/foot.ini
"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-sway
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
# Alsa UCM configs
install -Dm644 "$srcdir"/Snow-I2S-MAX98090.conf \
"$pkgdir"/usr/share/alsa/ucm2/conf.d/Snow-I2S-MAX980/Snow-I2S-MAX98090.conf
install -Dm644 "$srcdir"/HiFi.conf \
"$pkgdir"/usr/share/alsa/ucm2/conf.d/Snow-I2S-MAX980/HiFi.conf
}
nonfree_firmware() {
pkgdesc="WiFi/BT and MFC firmware"
depends="linux-firmware-mrvl linux-firmware-s5p-mfc"
mkdir "$subpkgdir"
}
sway() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-sway"
install -Dm644 "$srcdir"/foot.ini \
"$subpkgdir"/etc/skel/.config/foot/foot.ini
}
sha512sums="
8f12e32794f68ecc312ef9edde380bffc73f931cf210c8e0a5552f47b325f0f6648a95986ae17ad0a32245308dfd3c1e381377b67e6b96eeae18f97b83621f92 deviceinfo
a1fd6b4964b0bd4c66983430528f5906eea5cc9ddbe8485ba17e97496652240d0a93dbd3af34ecd3c273b7172202b8dcb24e0b5fa372512d01affec3914a023d modules-initfs
8a8f593694528a9323ef4a0aff7e9c6ad45608957eb042d425663f682885c2f95eb01db4fe87b7c43a90de48f3e5f8b10cab4b13c547b5b0d31b924fcb083cad HiFi.conf
b163535da7626e3866faa45768c3888f69f90c98d694650e16a7594a03eb91391e166931eb487901217d983bb2dc4e49b99a2a5531740a7d87f8f4f5c3d0cf59 Snow-I2S-MAX98090.conf
61c56cf84cf88371a2238845db1f8283c7eb7b417dec8c51d71e51fb96899bb026c0ee22dc94a43537a56477fb0db59de960949add4b0ce90552a1286e6afe69 foot.ini
"