2023-10-16 18:57:52 +00:00
|
|
|
# Maintainer: Henrik Grimler <henrik@grimler.se>
|
|
|
|
pkgname=postmarketos-base-downstream
|
2024-01-27 13:20:53 +00:00
|
|
|
pkgver=2
|
2023-10-16 18:57:52 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Base package for devices with downstream (vendor) kernels"
|
|
|
|
url="https://postmarketos.org"
|
|
|
|
arch="noarch"
|
|
|
|
license="GPL-3.0-or-later"
|
2024-01-27 13:20:53 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-disable-udev-v4l:disable_udev_v4l
|
|
|
|
$pkgname-lightdm
|
|
|
|
"
|
2023-10-16 18:57:52 +00:00
|
|
|
source="10-logind-check-graphical.conf"
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2024-01-27 13:20:53 +00:00
|
|
|
disable_udev_v4l() {
|
|
|
|
# On some devices the kernel panics or hangs when starting
|
|
|
|
# udev if camera firmware is missing and/or fails to load
|
|
|
|
pkgdesc="Package to disable udev video4linux rules"
|
|
|
|
replaces="eudev"
|
|
|
|
mkdir -p "$subpkgdir"/lib/udev/rules.d
|
|
|
|
ln -s /dev/null "$subpkgdir"/lib/udev/rules.d/60-persistent-v4l.rules
|
|
|
|
}
|
|
|
|
|
2023-10-16 18:57:52 +00:00
|
|
|
lightdm() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel lightdm"
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/10-logind-check-graphical.conf \
|
|
|
|
-t "$subpkgdir"/usr/share/lightdm/lightdm.conf.d
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
00addbea452dd3e2cb90e18793becc47d22118e6b99a79b76eb57db02aa8b00b133569beaea81cce4b39c9e556280c1d6ac8ab687016354e2d189734e38768cf 10-logind-check-graphical.conf
|
|
|
|
"
|