# Reference: https://postmarketos.org/uipkg
# Maintainer: Miles Alan <m@milesalan.com>
pkgname=postmarketos-ui-sxmo-de-sway
pkgver=1.9.0
pkgrel=1
pkgdesc="Simple Mobile: Mobile environment based on SXMO and running on sway"
url="http://sr.ht/~mil/Sxmo"
arch="noarch !armhf"
license="MIT"
depends="
	sxmo-common

	bemenu
	foot
	grim
	mako
	seatd
	seatd-openrc
	slurp
	swaybg
	swayidle
	sxmo-sway
	wayout
	wl-clipboard
	wob
	wtype
	wvkbd
	xwayland
	"
install="$pkgname.post-install $pkgname.pre-deinstall"
_pmb_groups="
	seat
	"
_pmb_recommends="
	w3m
	sfeed

	adwaita-icon-theme
	clickclack
	firefox-esr
	font-noto
	font-noto-emoji
	imv
	megapixels
	mobile-config-firefox
	postprocessd
	ttyescape
	"
provides="postmarketos-ui-sxmo"
provider_priority=1
# TODO: Remove this file when this config
# has been merged upstream.
# Link: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/3177
source="pinephone-keyboard.conf"
options="!check" # has no tests

package() {
	mkdir -p "$pkgdir"
	mkdir -p "$pkgdir"/etc/sway/config.d
	install -Dm644 "$srcdir"/pinephone-keyboard.conf \
		"$pkgdir"/etc/sway/config.d/pinephone-keyboard.conf
}
sha512sums="
1741b6ff4cf89c4d58e008d08c72b3411df72090d1a1caec3d89a855e79f37c3bfda2b8401bb46e1c1843e28bc796ade5f91d75a147ff4b61a0bdc1ae1f87c77  pinephone-keyboard.conf
"
