maintainer="bluebunny <kalorin.bok084@passinbox.com>"
pkgname=firmware-samsung-j7xelte
pkgver=4
pkgrel=0
pkgdesc="Proprietary firmware files for Samsung Galaxy J7 (2016)"
url="https://gitlab.com/android_samsung_universal7870/vendor"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
depends="linux-firmware-brcm"

_device="j7xelte"
_repo="android_vendor_samsung_$_device"
_commit="efc44605242a736d33aa261ee233e937932dcb27"

source="$url/$_repo/-/archive/$_commit/$_repo-$_commit.tar.gz"

package() {
	# Wi-Fi SDIO nvram.txt for BCM43430/0
	install -Dm644 "$srcdir/$_repo-$_commit/proprietary/vendor/etc/wifi/nvram.txt" \
		"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430a0-sdio.txt"
}

sha512sums="
2b17cfeaeccefad70220c3ddc7c40bd318ba73a4a8d065720d88fa5a0bb75ab9179bdf5dda17ac9302d5b6a1855bf3ac711315f8945ec5e7be98f92adafe70b1  android_vendor_samsung_j7xelte-efc44605242a736d33aa261ee233e937932dcb27.tar.gz
"
