# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Ashymad <czilukim@o2.pl>
pkgname="device-samsung-i8200"
pkgdesc="Samsung SIII mini Value Edition"
pkgver=0.1
pkgrel=4
url="https://postmarketos.org"
license="MIT"
arch="armhf"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-i8200 mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

nonfree_firmware() {
	pkgdesc="Wi-Fi and bluetooth firmware"
	depends="linux-firmware-mrvl"
	mkdir "$subpkgdir"
}

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

sha512sums="494a84bfeeb08280900233d5c1f7a49b8ec0b8c44b1ac31e86b029c982cb67006a3c2b5454a851b025fd28c2c00404a2ff00f9d6e31c18700e4a46e94c4836ca  deviceinfo"
