pkgname=firmware-samsung-i9505
pkgver=1
pkgrel=0
pkgdesc="Samsung Galaxy S4 International Firmware"
url="https://github.com/flo071/proprietary_vendor_samsung_jf-common"
arch="noarch"
license="proprietary"
options="!check !strip"

# Source
_commit="af95c8f4af9fda8b909579dafc30ec1ce29cb12d"
source=$pkgname-$_commit.tar.gz::$url"/archive/${_commit}.tar.gz"

package() {
	cd "$srcdir/proprietary_vendor_samsung_jf-common-${_commit}/proprietary/"

	# Wifi
	install -Dm644 "etc/wifi/bcmdhd_sta.bin" \
		"$pkgdir/lib/firmware/postmarketos/bcmdhd_sta.bin"
	install -Dm644 "etc/wifi/nvram_net.txt" \
		"$pkgdir/lib/firmware/postmarketos/nvram_net.txt"
}
sha512sums="b8b92806123b4ab5c02adfb1e33ad18a84a51f181485f7fffe51a6d60678b9750c3bc461550b0a3afde99b4685c8720b0b8be3626f68a284863cb10e3c68c7c5  firmware-samsung-i9505-af95c8f4af9fda8b909579dafc30ec1ce29cb12d.tar.gz"
