# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-i9100g
pkgdesc="Samsung Galaxy SII (GT-I9100G)"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-samsung-i9100g
	postmarketos-base
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="
	deviceinfo
	modules-load.conf
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="WiFi firmware"
	depends="firmware-samsung-i9100"
	mkdir "$subpkgdir"
}

sha512sums="
3ad44f3050d7350f830b015a1df51b9b5214234d8f360fc539d1ebf3742af73855d0cee7d15b432a6f6e25b1d28f84b4578e89790867e2622fa52c70d25225b1  deviceinfo
2a9b4212269ca367effb8c336cf8432498297988b3cb2b1ea4bef0ce4bcc1ed2975f8a798ef9b4c3131f7e2366e25c2c1abafe9302bee6679ed6440ba10c3d36  modules-load.conf
"
