pkgname=device-samsung-i9305
pkgver=1
pkgrel=21
pkgdesc="Samsung Galaxy SIII LTE"
url="https://postmarketos.org"
arch="armhf"
license="MIT"
depends="postmarketos-base linux-samsung-i9305 mkbootimg mesa-dri-swrast"
makedepends=""
install="$pkgname.post-install"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="
	deviceinfo
	90-android-touch-dev.rules
"
options="!check !archcheck"

package() {
	install -D -m644 "$srcdir/deviceinfo" \
		"$pkgdir/etc/deviceinfo"
	install -D -m644 "$srcdir"/90-android-touch-dev.rules \
		"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
}

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

sha512sums="3011751e717501b920b888e8438c77178cdda0d26c3ad5ffa3879be83ab6cd1b5a330040000aeb837b84d55eaca3f8a5b02668a1354e4e0121c437c9ff152cfe  deviceinfo
d70a03210458c771f94db920a8d3162a03fc7727f0fbafef4c1575ebc659c937c082f5c7a4dcdd1572925b973d628c6f4cf895c3b8b2a59af8142824468fe7c4  90-android-touch-dev.rules"
