pkgname=firmware-samsung-i8190
pkgver=1
pkgrel=0
pkgdesc="Samsung Galaxy SIII mini proprietary firmware"
url="https://github.com/3liteking148/android_vendor_samsung_golden"
arch="armhf"
license="proprietary"
options="!check !strip"

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

package() {
	cd "$srcdir/android_vendor_samsung_golden-${_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="b1d39e4d2180585970d7c06eca424aa784d76b8ccb020dc0768f683e8fd1e68e4487213c021db33ec40141f09db1879d53851110fc89d4e57e2205d1788904a3  firmware-samsung-i8190-3ca5e3fac6f68263bbe4ef72887cc8c3f10fed4c.tar.gz"
