2023-05-24 18:21:03 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-xiaomi-pine
|
|
|
|
pkgdesc="Xiaomi Redmi 7A"
|
2024-04-02 12:52:52 +00:00
|
|
|
pkgver=1
|
|
|
|
pkgrel=0
|
2023-05-24 18:21:03 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
linux-xiaomi-pine
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
2023-06-10 11:47:28 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
etc-lightdm-lightdm.conf
|
|
|
|
"
|
2023-05-24 18:21:03 +00:00
|
|
|
|
2023-06-10 11:47:28 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-fix-lightdm:fix_lightdm
|
|
|
|
"
|
2023-05-24 18:21:03 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Proprietary firmware"
|
|
|
|
depends="firmware-xiaomi-pine"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2023-06-10 11:47:28 +00:00
|
|
|
# copied from device-samsung-goyawifi
|
|
|
|
fix_lightdm() {
|
|
|
|
install_if="$pkgname 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
|
|
|
|
}
|
2023-05-24 18:21:03 +00:00
|
|
|
sha512sums="
|
2023-05-31 11:35:58 +00:00
|
|
|
13d394f6cf0050034dc4bc996865d7a68369a3c0111fdb6af4987756c68a7921dc92cfa1d1086d269871d7a127f298b597b91d453fcce5809d3d232d6a7d70ce deviceinfo
|
2023-06-10 11:47:28 +00:00
|
|
|
861270c6bc0b2a3e6cd389c21c8c895e62de8cf8bec6fcf23c178f8cbaae855d62b0ee98692671ab4f518d84cb43dd0b2fe46f5a609f65af6a6c06e0fdbb6d0c etc-lightdm-lightdm.conf
|
2023-05-24 18:21:03 +00:00
|
|
|
"
|