# Reference: <https://postmarketos.org/devicepkg>
maintainer="markochk <markochk@proton.me>"
pkgname=device-huawei-berlin
pkgdesc="Huawei Honor 6X"
pkgver=4
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-huawei-berlin
	mkbootimg
	msm-fb-refresher
	postmarketos-base
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo kernel-cmdline.conf"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-huawei-berlin hisi-wlan"
	mkdir "$subpkgdir"
}

sha512sums="
fc8fbb0f92743342998b9ab9d24a54ad97d216029a171561bf5e93480547f139a6bee840830963ab9bc9645d5a97b1357713a1db670ccc556415b2f580ab848d  deviceinfo
e30d7197b06041ce52e0e923c021abbf8f1ed305f6d5657ce3af1b81543d29adcf2755743e4b11bce1ee1badf4b424f22e1de45966b671c1fff8109d1e27aec5  kernel-cmdline.conf
"
