# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-xiaomi-ido"
pkgdesc="Xiaomi Xiaomi RedMi 3"
pkgver=0.1
pkgrel=4
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="postmarketos-base linux-xiaomi-ido mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo
	fb.modes
	initfs-hook.sh"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
        install -Dm644 "$srcdir"/initfs-hook.sh "$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh

}

sha512sums="ada61a690a1358b1d94e5d96660fd6bd5eb2b0cbb570e30146df4f28c79620719f0f2500efd6cbc07d0e01ca83b893c8038b26a84557650423ec55c8a88f9b9a  deviceinfo
8a72f8d34fd0a8c7b6de0a2ab16e255b3fe28993e1aef7c25c3c4becc5851e51f5dcc3814acc75c8bb829bc02d180d976ee3877a98982d29cfc5cb7ea84f1c32  fb.modes
3b46dfab8465935349a8775e0247a3ea4274c16a9f526f17e1397ae2f6bdef11d9cbd969dc630a7d647e4130f5a2f1a8e85357fc34a5b1900411f9219a62b38e  initfs-hook.sh"
