# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-j3ltetw
pkgdesc="Samsung Galaxy J3 (2016)"
pkgver=2.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	postmarketos-base
	mkbootimg
	linux-postmarketos-qcom-msm8916
	soc-qcom-msm8916
	soc-qcom-msm8916-rproc
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
_pmb_select="soc-qcom-msm8916-rproc"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
	depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-j3ltetw-wcnss-nv"
	mkdir "$subpkgdir"
}

sha512sums="
01f7eba7641a088a65748d4b647749c730ab5713ea3c55c30130aa4e62134b32be05519a9c6c49dd8a8492144008430a5fe2dd895da63893809fbbe271467b13  deviceinfo
"
