pmaports/device/community/device-google-snow/APKBUILD

64 lines
1.9 KiB
Text
Raw Normal View History

2022-01-29 14:26:24 +00:00
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-snow
pkgdesc="Samsung Chromebook"
pkgver=6
pkgrel=1
2022-01-29 14:26:24 +00:00
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
alsa-ucm-conf
depthcharge-tools
linux-postmarketos-exynos5
2022-01-29 14:26:24 +00:00
postmarketos-base
postmarketos-cros-common
2022-01-29 14:26:24 +00:00
"
makedepends="devicepkg-dev"
2022-01-29 14:26:24 +00:00
source="
deviceinfo
modules-initfs
2022-01-29 14:26:24 +00:00
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"
2022-01-29 14:26:24 +00:00
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
e12a68f919182cb4e6812a5dd13fce8dc15266d2ac16aa5f0a31034f111cb403c020ebaaa4d94309f4baf2f71379327c57c08029e27c506d152695e9a2b04b2b modules-initfs
2022-01-29 14:26:24 +00:00
8a8f593694528a9323ef4a0aff7e9c6ad45608957eb042d425663f682885c2f95eb01db4fe87b7c43a90de48f3e5f8b10cab4b13c547b5b0d31b924fcb083cad HiFi.conf
b163535da7626e3866faa45768c3888f69f90c98d694650e16a7594a03eb91391e166931eb487901217d983bb2dc4e49b99a2a5531740a7d87f8f4f5c3d0cf59 Snow-I2S-MAX98090.conf
61c56cf84cf88371a2238845db1f8283c7eb7b417dec8c51d71e51fb96899bb026c0ee22dc94a43537a56477fb0db59de960949add4b0ce90552a1286e6afe69 foot.ini
"