4f12013a68
Tested on peach-pit, should work the same on peach-pi. [ci:skip-build]: already built successfully in CI
64 lines
2 KiB
Text
64 lines
2 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
|
pkgname=device-google-peach-pi
|
|
pkgdesc="Samsung Chromebook 2 (13.3 inch)"
|
|
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
|
|
i3wm/xorg.conf.d/90-tap-to-click.conf
|
|
ucm/Peach-Pi-I2S-MA.conf
|
|
ucm/HiFi.conf
|
|
"
|
|
subpackages="
|
|
$pkgname-i3wm
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
# Alsa UCM configs
|
|
install -Dm644 "$srcdir"/Peach-Pi-I2S-MA.conf \
|
|
"$pkgdir"/usr/share/alsa/ucm2/conf.d/Peach-Pi-I2S-MA/Peach-Pi-I2S-MA.conf
|
|
install -Dm644 "$srcdir"/HiFi.conf \
|
|
"$pkgdir"/usr/share/alsa/ucm2/conf.d/Peach-Pi-I2S-MA/HiFi.conf
|
|
}
|
|
|
|
i3wm() {
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-i3wm"
|
|
install -Dm644 "$srcdir"/90-tap-to-click.conf \
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/90-tap-to-click.conf
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="WiFi/BT and MFC firmware"
|
|
depends="linux-firmware-mrvl linux-firmware-s5p-mfc"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
868c91b293af722612dc1e5b4586b566aff0487dd75092f54b91b17a5f015952eb9278877c2ff1785616d48c674af6f707fb398ff1ebb651af9b9e3f2ef550dd deviceinfo
|
|
a1fd6b4964b0bd4c66983430528f5906eea5cc9ddbe8485ba17e97496652240d0a93dbd3af34ecd3c273b7172202b8dcb24e0b5fa372512d01affec3914a023d modules-initfs
|
|
e53ca475830930ecfc1fd537702e850e2abcb66fbed521cb6c3a2918d762649254bd0244ec93a47b20dfc593ec3afc9bdebdec1759a7bc96dcbe4800f40893da 90-tap-to-click.conf
|
|
2ccec36a88003673471fcec7c0e408c24892e43701d88986c6a85a7882ac275565eb3abf566709306ddc16a62b4558ebceffbc289e7c95336ba28262719c6413 Peach-Pi-I2S-MA.conf
|
|
a95701b30c6b7535a60d0db932d018673a72346974cca86b9a1212fa8c66b1ad5fffaa0c6ac5fe5ead2c91a90375d5d24f74fd571300a21c53e4a2c16953c170 HiFi.conf
|
|
"
|