pkgname=device-sony-yuga
pkgver=1
pkgrel=11
pkgdesc="Sony Xperia Z"
url="https://postmarketos.org"
arch="noarch"
license="MIT"
depends="postmarketos-base linux-sony-yuga mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends=""
install=""
subpackages=""
source="deviceinfo 90-android-touch-dev.rules"
options="!check"

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

	# Disable v4l (video4linux), because without the camera firmware
	# blobs this makes dev hang with the kernel this device uses (#1033)
	ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
}

sha512sums="052fe308e049c11aa6ee9d1e40d797b7d46295e950736cd26e406584863794b692273a5c27f757bd2cdac467bc866504ff3bfa3f66a96244bf146abb2e131b1d  deviceinfo
8b6034c0338ab4c7d648f47983aad6da07e427e7dba47baabf85a1b3ddeeda47c8d7fbcd547a302c9a759b2943ee30d3e82c3b368d8582833a058e4671638a9e  90-android-touch-dev.rules"
