# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-zerofltexx
pkgdesc="Samsung Galaxy S6"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	postmarketos-base
	postmarketos-base-downstream-disable-udev-v4l
	linux-samsung-zerofltexx
	mkbootimg
	msm-fb-refresher
"
makedepends="devicepkg-dev"
source="deviceinfo"

subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

install="$pkgname.post-install"


build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Non-free firmware for the Samsung Galaxy S6"
	depends="firmware-samsung-zero"
	mkdir "$subpkgdir"
}


sha512sums="
03ef283af0ad3c5be2ade36c4a6b52129c3bf5d7ac2e26e130d75e003b5ab7f36bb4821fc52f917c0f557a75e537d32ad026e91ff191b9410887c33f43e10ddf  deviceinfo
"
