# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-huawei-y530"
pkgdesc="Huawei Ascend Y530"
pkgver=1
pkgrel=12
url="https://postmarketos.org"
license="MIT"
arch="armhf"
options="!check !archcheck"
depends="postmarketos-base linux-huawei-y530 mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

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

sha512sums="177bf356fefba4e943161b1aeb1d6bf51af96e773f275035d2d5d077033b5dd68809c632b8d95263986a94a257251e7a818d1e363585a6ad230b63f4f922fbb2  deviceinfo"
