# Maintainer: Caleb Connolly <caleb@connolly.tech>
pkgname=postmarketos-bootsplash
pkgver=0.2
pkgrel=0
pkgdesc="pmOS integration components for pbsplash"
url="https://postmarketos.org"
arch="all"
license="CC-BY-SA-3.0"
depends="pbsplash"
options="!check" # no testsuite
subpackages="$pkgname-openrc"
source="
	kill-pbsplash
	OpenSans-Regular.svg
	pmos-logo.svg
	pmos-logo-text.svg
	pmos-logo-text-epaper.svg
	postmarketos-bootsplash.files
"

package() {
	install -Dm755 "$srcdir/kill-pbsplash" -t "$pkgdir"/etc/init.d/
	install -Dm644 "$srcdir"/OpenSans-Regular.svg -t "$pkgdir"/usr/share/pbsplash/
	install -Dm644 "$srcdir"/pmos-logo.svg -t "$pkgdir"/usr/share/pbsplash/
	install -Dm644 "$srcdir"/pmos-logo-text.svg -t "$pkgdir"/usr/share/pbsplash/
	install -Dm644 "$srcdir"/pmos-logo-text-epaper.svg -t "$pkgdir"/usr/share/pbsplash/
	install -Dm644 "$srcdir"/postmarketos-bootsplash.files \
		"$pkgdir"/etc/postmarketos-mkinitfs/files/30-postmarketos-bootsplash.files
}

openrc() {
	install="$subpkgname.post-install"
	default_openrc
}

sha512sums="
7e5416f0f9de3605dcbc5ddd4b93d244fd6d4fd1bc2d5a15a034263f8517fc51e73509f29f2a13397d059913917990ada89b36ac7b00a0d21c0283fade755c1c  kill-pbsplash
2387c64d84f0ba3ee76925f55c87ce025140aa3cd462107a851c34ffd89bd52f606e0d1f9f371d4f642d96545d5cc1bc0fcfb23ca7629a9149055f068da6bffd  OpenSans-Regular.svg
98984fd67b99400d2b08422c4d314da558d3c94ee67dbc895e7bbfd6fdf22d4b2c9d35f48f4b73b383a054f535d4089fb705c5532f034cb2ee54eab2184e8e86  pmos-logo.svg
1940480fb98ffd1cef17c0ed440d44aa200119d022ce59973a18fa39ee040b19e748312ae61edae4ff8d2bacf42b4d7c9144274b99cd8563e4a106447825b8f2  pmos-logo-text.svg
d673bacfcf16cdaa602e82663ffc17e131040e76e4ebd4078f8340c4ebb5be983ac8a4c9acf25f7c8b725a36adb7e775cbeef1b3cc809f58d876e70994b8f6c2  pmos-logo-text-epaper.svg
bdef8c991bc8caff2788433fdc399a36541833f373b2db236d55419ccce34993a6b897ec7c27f27b16facadf2699aa189c6c867f233bb38d778ffb6e67efc090  postmarketos-bootsplash.files
"
