# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-maguro
pkgver=3
pkgrel=0
pkgdesc="Google Galaxy Nexus (GSM)"
url="https://postmarketos.org"
arch="armv7"
license="MIT"
depends="postmarketos-base linux-samsung-maguro mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
install=""
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"
options="!check !archcheck"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-samsung-maguro"
	mkdir "$subpkgdir"
}

sha512sums="1173263d7e39ab361089672c7342c616174e341fe7bbbb2dde46f8e40dd57161e9019c95971ae80f5d931a12a4b8db6bf271c0134ad137a7810f1fc34a9b1d3c  deviceinfo"
