# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-beyond1lte
pkgdesc="Samsung Galaxy S10"
pkgver=0.1
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-samsung-beyond1lte
	mkbootimg
	postmarketos-base
	msm-fb-refresher
"
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="Firmware for Galaxy S10"
	depends="firmware-samsung-beyond1lte"
	mkdir "$subpkgdir"
}

sha512sums="
1918c89ce10f8beb3dfa8c682f7e78da2d0d99aa2f8ce6d91672197a8121d63d2457efb4675e56668b6e6fec3aff43d4982566ca9d4d4dc566503963121f18e2  deviceinfo
03deb65563f4b4421491643854927e88b2d5880b8b19ee6baa4d3fa1ec3f7d7a1c2977fd2c3c41270254efea6fa0c5fdae0a382e7c427d5a3bf6fad34c25375e  initfs-hook.sh
"
