2023-08-07 08:08:19 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-xiaomi-olive
|
|
|
|
pkgdesc="Xiaomi Redmi 8"
|
|
|
|
pkgver=0.1
|
2023-08-11 13:50:22 +00:00
|
|
|
pkgrel=1
|
2023-08-07 08:08:19 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
linux-xiaomi-olive
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
etc-lightdm-lightdm.conf
|
2023-08-11 13:50:22 +00:00
|
|
|
10-unl0kr.conf
|
2023-08-07 08:08:19 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-fix-lightdm:fix_lightdm
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2023-08-11 13:50:22 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/10-unl0kr.conf \
|
|
|
|
"$pkgdir"/etc/unl0kr.conf.d/10-unl0kr.conf
|
|
|
|
|
2023-08-07 08:08:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Proprietary firmware"
|
|
|
|
depends="firmware-xiaomi-pine"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
# copied from device-samsung-goyawifi
|
|
|
|
fix_lightdm() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel lightdm"
|
|
|
|
pkgdesc="Fix the problem for CanGraphical=no in LightDM according to Display Manager in PMOS Wiki"
|
|
|
|
depends="lightdm"
|
|
|
|
replaces="lightdm"
|
|
|
|
|
|
|
|
# Install lightdm configuration with logind-check-graphical=false
|
|
|
|
install -D -m644 "$srcdir"/etc-lightdm-lightdm.conf \
|
|
|
|
"$subpkgdir"/etc/lightdm/lightdm.conf
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
|
|
9eb972182d4cdc5af52250dc89b96a3a3611c8cf3de5ca9979647ac282f3f55b8663b2270badccb164ed2b941f747b8221730d9882ec2991fb8196bae3e32b61 deviceinfo
|
|
|
|
861270c6bc0b2a3e6cd389c21c8c895e62de8cf8bec6fcf23c178f8cbaae855d62b0ee98692671ab4f518d84cb43dd0b2fe46f5a609f65af6a6c06e0fdbb6d0c etc-lightdm-lightdm.conf
|
2023-08-11 13:50:22 +00:00
|
|
|
f700af3145b79d1ef9edfb22982899b25cabfb212f9620dcbd3a2e6f44b5ad591e0a66056c6fcd66c3fde89a2b5f551e8a8fe2e65cf0e2a48adec57c027d7825 10-unl0kr.conf
|
2023-08-07 08:08:19 +00:00
|
|
|
"
|