# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-j5nlte
pkgdesc="Samsung Galaxy J5 2015 (SM-J500FN)"
pkgver=1
pkgrel=3
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-j5nlte-venus firmware-samsung-j5nlte-wcnss"
	mkdir "$subpkgdir"
}

sha512sums="
d12123b89c1f02bd3599ecb8ea6dad9e9c1814fcaa82dcef609428c11291318412547f65c8b3f28e6d83f55134b736cd332774ca9c1a4922f6eab4b7ab11b3bd  deviceinfo
"
