pkgname=firmware-chuwi-hi10plus
pkgver=0.1
pkgrel=1
pkgdesc="Firmware for Chuwi Hi10 Plus"
url="https://github.com/onitake/gsl-firmware"
arch="x86_64"
license="proprietary"
depends=""
source="https://github.com/Danct12/gsl-firmware/raw/master/firmware/chuwi/hi10_plus/firmware.fw
	20-touchscreen-firmware.files"
options="!strip !check !archcheck"

package() {
	install -Dm644 "$srcdir/firmware.fw" \
		"$pkgdir/lib/firmware/silead/gsl1680-chuwi-hi10plus.fw"
	install -Dm644 "$srcdir/20-touchscreen-firmware.files" \
		"$pkgdir/etc/postmarketos-mkinitfs/files/20-touchscreen-firmware.files"
}

sha512sums="450f9a12ec7a766f29eac7b29bdc10a30ad0161645e94b0290f5caec0ac24db7da080446aeb53a0674c1c8229598ae7459f1f30c9761ffaad9bfd32027702613  firmware.fw
85eda4c0a90f4d9aaf34dff36b08534e27962acd0214873a6b73039a663dd5bfd7de084833b07f2a56314466e2466ad68ce7b6ecbfe496c0578020847bc9b6e6  20-touchscreen-firmware.files"
