pkgname=firmware-samsung-i747m
pkgver=1
pkgrel=0
pkgdesc="Samsung Galaxy SIII i747m Firmware"
url="https://github.com/Zerospeed8/device_samsung_d2att"
arch="noarch"
license="proprietary"
options="!check !strip"

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

package() {
	cd "$srcdir/device_samsung_d2att-${_commit}/vendor/samsung/d2att/proprietary/"

	# Wifi
	install -Dm644 "etc/wifi/bcmdhd_sta.bin_b2" \
		"$pkgdir/lib/firmware/postmarketos/bcmdhd_sta.bin_b2"
	install -Dm644 "etc/wifi/nvram_net.txt" \
		"$pkgdir/lib/firmware/postmarketos/nvram_net.txt"
}

sha512sums="b212ab69c782e45e0ee1005bd952ed763437693e769f5309da482b8138a1357d070f60a11185c7c30e61a0841dde08153a4d5a78da3e51ab3aa8ebd5dfddeec7  firmware-samsung-i747m-15cea7e29a50a85f7cd5ce27e5ff865314467ca3.tar.gz"
