pkgname="device-sony-honami" pkgdesc="Sony Xperia Z1" pkgver=1.0 pkgrel=7 url="https://postmarketos.org" license="MIT" arch="armhf" options="!check !archcheck" depends="postmarketos-base linux-sony-honami msm-fb-refresher mkbootimg mesa-dri-swrast" source="deviceinfo 90-android-touch-dev.rules" subpackages="$pkgname-nonfree-firmware:nonfree_firmware" package() { install -Dm644 "$srcdir"/deviceinfo \ "$pkgdir"/etc/deviceinfo install -Dm644 "$srcdir"/90-android-touch-dev.rules \ "$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules } nonfree_firmware() { depends="firmware-sony-amami" pkgdesc="Wifi firmware" mkdir "$subpkgdir" } sha512sums="3304966eebda7904cf92687aff79578b1f7a4bf6f4c9ae7e1253dc1046cd956b0c51d61b7496b0d6860a1286d93a16e67f70cac0b6fac2bd32f2598d1c101297 deviceinfo 1651ac9eda3c97fafe55abe0f0ae429e04f73edcbf2c56aa3259f81837f7adde348bcb385daed05c30cfc61415455a459a917ed3acccbfd9b7a1caa32a851d40 90-android-touch-dev.rules"