# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-tolino-shine3
pkgdesc="Tolino Shine 3"
pkgver=0.3
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	kobo-epdc-extractor
	linux-kobo-clara-mainline
	perl
	postmarketos-base
	u-boot-tolino-shine3
	u-boot-tools
"
makedepends="devicepkg-dev"

source="
	deviceinfo
	uboot-script.cmd
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	mkimage -A arm -O linux -T script -n postmarketOS \
		-d "$srcdir/uboot-script.cmd" "$srcdir/boot.scr"
	install -Dm644 "$srcdir/boot.scr" "$pkgdir/boot/boot.scr"
}

sha512sums="
fa9be9c58e73dc106852bb6aa9daeeee7fd10c0fe8670be91c4712b36bfc6006593d939ab2a8bdf17dd2132179d889d3074715d056a6d53e831ac879485b11ab  deviceinfo
86827d4464def94006105841000ed934326d814d49aa03292937228a37b1120ebb84f04cd23946feaca16c8eb8d847d671bef0ae98f2c5632fd01abb46bb033d  uboot-script.cmd
"
