# Archived: unmaintained
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-sony-ivy
pkgdesc="Sony Xperia Z3+"
pkgver=4
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-sony-ivy mkbootimg mkbootimg msm-fb-refresher"
makedepends="devicepkg-dev"
source="
	deviceinfo
	kernel-cmdline.conf
	90-android-touch-dev.rules
"
subpackages="
	$pkgname-nonfree-firmware:nonfree_firmware
	$pkgname-udev
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	install -D -m644 "$srcdir"/90-android-touch-dev.rules \
		"$pkgdir"/usr/lib/udev/rules.d/90-android-touch-dev.rules
}
nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-sony-ivy"
	mkdir "$subpkgdir"
}

sha512sums="
0577b5a13a16460c4917c08cc1ffc9cfef6c883421e726543f4da7f88df45c39fac593975ce314920fe3fc14fdf9118c27dba0341ebdfa2aa09f00850c126abd  deviceinfo
1b71d67ea4f1d1ed83f3926cb43b72ab2da62b1b44dda3dd9c0f7faa8c8b2e91fc548db16352e0a2632493b72b437e5194cae2d233463c269e1cfe9e0daf1fac  kernel-cmdline.conf
8b6034c0338ab4c7d648f47983aad6da07e427e7dba47baabf85a1b3ddeeda47c8d7fbcd547a302c9a759b2943ee30d3e82c3b368d8582833a058e4671638a9e  90-android-touch-dev.rules
"
