# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-htc-leo
pkgdesc="HTC HD2"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	postmarketos-base
	postmarketos-base-downstream
	linux-htc-leo
	mkbootimg
	msm-fb-refresher
"
makedepends="devicepkg-dev"
source="deviceinfo kernel-cmdline.conf"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-aosp-broadcom-wlan"
	mkdir "$subpkgdir"
}
sha512sums="
33e7ea6218ec72406a8c95a2153ec1d1c59862e8d4a56b9b8db0cce66561a194c7d2d1d427eed52881c744cd78b8e553069bde03ec4a48326b5db9e3ff894e29  deviceinfo
76979b10ad963b528ec27eee508c90e93893692e1fe2c378e666337763f3b642fbbe972aed03d73ff654cef7f57094784fb950296024b826e2749a3f2870ca15  kernel-cmdline.conf
"
