# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-a20
pkgdesc="Samsung Galaxy A20"
pkgver=0.1
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-a20 mkbootimg mesa-dri-gallium"
makedepends="devicepkg-dev"
source="deviceinfo initfs-hook.sh"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

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

sha512sums="46cfa2dedbe093729f027cc9441d331bcb92688442f296e78b13556edee26fc14c433a58018134a7466fb0828fa0f204b22d1d50794ffc4d3b6cce57f441ef8c  deviceinfo
d5c8f7ed89a842da83109e899ba55802cf07518bea057c8f0a70d942e4a17ce87bb470741a99369bc095c0005c529047437a1833294ba903a93eb4f6822a4611  initfs-hook.sh"
