# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-j53g
pkgdesc="Samsung Galaxy J5 2015 (SM-J500H)"
pkgver=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Video firmware"
	depends="linux-firmware-qcom firmware-samsung-j53g-venus firmware-samsung-j53g-wcnss"
	mkdir "$subpkgdir"
}

sha512sums="
69829a997777db339add21251cd76bd6a539ad59aefbe97039abfa4f4207d95f988b4bd07cd98cf6d71d88a2b86fe4b3c9ed461c4b6205b276d7aef7e41d3a8d  deviceinfo
"
