# Archived: unmaintained
maintainer=""
pkgname=firmware-samsung-beyond2lte
pkgver=1
pkgrel=0
pkgdesc="Firmware for the Samsung Galaxy S10+"
url="https://github.com/Linux4/proprietary_vendor_samsung"
arch="aarch64"
license="proprietary"
options="!check !archcheck !strip !spdx !tracedeps pmb:cross-native"

# Source
_commit="7f9ff5be60218fffd6d0474eb78f72067330b347"
_wifi_files_common="bcmdhd_mfg.bin_b1 bcmdhd_mon.bin_b1 bcmdhd_sta.bin_b1 nvram.txt_ES00_semco_b0 nvram.txt_ES01_semco_b0 nvram.txt_ES02_semco_b0"
_wifi_files_device="bcmdhd_clm.blob nvram.txt_1rh_es11_b0 nvram.txt_1rh_es12_b0 nvram.txt_1rh_es13_b0 nvram.txt_1rh_es43_b1 nvram.txt_CS01_semco_b1 nvram.txt_ES03_semco_b0"

for _file in $_wifi_files_common; do
	source="$source $pkgname-$_commit-$_file::$url/raw/$_commit/exynos9820-common/proprietary/vendor/firmware/$_file"
done
for _file in $_wifi_files_device; do
	source="$source $pkgname-$_commit-$_file::$url/raw/$_commit/beyond2lte/proprietary/vendor/firmware/$_file"
done

package() {
	# Wifi
	local file
	for file in $_wifi_files_common $_wifi_files_device; do
		 install -Dm644 "$srcdir/$pkgname-$_commit-$file" \
			"$pkgdir/lib/firmware/postmarketos/$file"
	done
}

sha512sums="
82fdca632de16ae8ae86c9e6daa1e2407f93e41df16c3a52490bf8353be7d3f75d66ad193875cbbca0e5b05efb52c1e0691d5c153ca3cd5f0ef64e053217414b  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-bcmdhd_mfg.bin_b1
6c40e03c1d32651fba382bfb4e75c9240e49f527b5591d3e68410df35c0d1ec5fd2074e4b5c607b573276005735b767a959c8f6c580bbaab209ca4a908fbecd4  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-bcmdhd_mon.bin_b1
12d4278041f104ffd6276a5a76a1a4820c4439bc6871ccde48eb6cd9ea474cbaf3fe75cd667ac86c16c320adadbf914d1b454ce00dace61eb3949d91ef06c622  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-bcmdhd_sta.bin_b1
a18ceea8b753102bfacdcc713eb6d22e942adc7ded2232fcf3d2e02b4ba780b588d40f91f3994d3e87fe04ab318f561171adcd80ab1a1730fcf33e70f87402f2  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_ES00_semco_b0
aa3a52150f87c60b77e2b9df8e3e19d60cdedfe9137be67c25466e068b33ff53d587b96e0657721d37002e44af9b8b86a0c92948da7927900ea3a783afd41d73  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_ES01_semco_b0
6887150124ea7227833104e8eacdaf305fcb4c57755fd44a2ae3d8b2c2565a6c282875923967a889c672f5992485849174d981eba2f9fd95e90f15cf03ebbe47  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_ES02_semco_b0
d1219801334a83537f1b410abdb058eef8a4b600ddd23d73d078d5b682a067cf1d128e9b1b2484864205d3c56937896e9440a350ba0424102cf4823c78acba1a  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-bcmdhd_clm.blob
e8263dc21849228b88a61ab9ab1c5bf3f9e6742e0d6125f28c65ee1bf54bdd473e72e608fb6eede5727aa8ea881e215326289a601274e34757f9665e4214f2e4  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_1rh_es11_b0
f95cb09859718fde6df2c9e2f855c0280ff97d94d57e40aeaa7639d6b7200cd0a5ced7d9afc0b69504c981a85f969d9d58c3be16585ab98c7212be70bde1bca6  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_1rh_es12_b0
2448da911a6007352cfa5c693f450f12e55d9b9758e86dcf4b0bbdf418fa3424d5f495d8a198f172d99a6aed217915a7ab7aa531780fedf8efe5a1846b82b328  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_1rh_es13_b0
5fd0705c58b72463282145ca69523ed38a1a5b6ca2e1c549dacc3d5160f727e92d2dfe65cc3fc2440819ddf3dfc2f6724350e00c029967651ad7a3b95ab8e08f  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_1rh_es43_b1
e33ccf8bbf04b0350deecc79b1a31b638365568ac3f496898cb3865f9b8bdc48c05db36caa2baaee1dde377e576ac3e9ccbc9f58dcb57f892b7f9f7d37bc13f9  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_CS01_semco_b1
b2aea1ed59a57ea3934049bb6d787e2ed85458d646c1dd95d2dec299d428e60081d7ca78b47aee1ae4b99d941a80db900501a8824598141d1d8eb858888d10b4  firmware-samsung-beyond2lte-7f9ff5be60218fffd6d0474eb78f72067330b347-nvram.txt_ES03_semco_b0
"
