# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-nokia-ant
pkgdesc="HMD Global Nokia 1"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	android-tools
	linux-nokia-ant
	msm-fb-refresher
	mkbootimg
	postmarketos-base
"
makedepends="devicepkg-dev"
source="
	deviceinfo
	kernel-cmdline.conf
	generate_signed_boot.sh
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	install -Dm755 "$srcdir/generate_signed_boot.sh" "$pkgdir/usr/share/mkinitfs/generate_signed_boot.sh"
}

sha512sums="
d9d30aa564c9e0c8e58aaa9176768c3b7788a1b58b7c5371019f0177c3dcf7681fe01f56f87a5087e58dbc7d4e8ccf915be3e15d7a218a4730bbc649cd480461  deviceinfo
53613c64bafe42607cca461b62ed97a3f653b50f0cad9b38c13f61ef12438c7c624afb8ecc7cc53d8c9de45f270a0456f43ee003df20f17928d088e15735504e  kernel-cmdline.conf
ec3d18c68c816ebf2bfa7f0ad2fd158d14ca9fecabc56a6f8961c0a11be8b9af67722bc52ecdb3276abc06dd33f444d29fc3bf95660a21d6dacfd37a276d7d81  generate_signed_boot.sh
"
