# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-kiran
pkgdesc="Samsung Z1"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-samsung-kiran
	postmarketos-base
	alsa-utils
	alsa-ucm-conf
	soc-sprd-audio-sc8830
"
makedepends="devicepkg-dev"
install="$pkgname.post-install"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Firmware for Wi-Fi"
	depends="firmware-samsung-kiran"
	mkdir "$subpkgdir"
}

sha512sums="
2c5ab0ec06358d4575c12a9a70437812227b3981248d208e552942429220424f6b90a451ae514fd9c83dc4281bb2825d7738802931fd53a57c69f8e4eb79a576  deviceinfo
"
