pkgname=postmarketos-ui-hildon
pkgver=1
pkgrel=3
pkgdesc="(X11) Lightweight GTK+2 UI (optimized for single-touch touchscreens)"
url="https://github.com/postmarketOS"
arch="noarch"
license="GPL3+"
depends="
	dbus-x11
	hildon-desktop
	hildon-theme-alpha
	mesa
	xorg-server
"
makedepends=""
install="$pkgname.post-install"
subpackages=""
source="start_hildon.sh xinitrc_hildon.sh $install"
options="!check"

package() {
	# Default theme
	mkdir -p "$pkgdir"/usr/share/themes
	ln -s /usr/share/themes/alpha "$pkgdir"/usr/share/themes/default

	# Autostart via autologin on TTY0 (until we have a display manager #656)
	install -D -m644 "$srcdir"/start_hildon.sh \
		"$pkgdir"/etc/profile.d/start_hildon.sh
	install -D -m644 "$srcdir"/xinitrc_hildon.sh \
		"$pkgdir"/etc/postmarketos-ui/xinitrc_hildon.sh
}
sha512sums="6c446fd2c0c50b10bf3bd4da93520b975f3632dab24c34eb33f22af7fdd2d96b8d7b605a4aee0c8e2544f56b7fd2dfc0ad39dc57b11cb2eb8c952f823d1b2987  start_hildon.sh
5ef5710bee7bde99e1f240eb8873239c452b55c6dc943930e181d091835824094cf56bf29ae1b34d792ba0ce27f76e30ea69f3c125dda3bf286eaaaba8c8e6ae  xinitrc_hildon.sh
64007cebcfbb9d8cdc4db7f889722509e1090af0712802300611fb805e00e1de474e4e6b538d0d99be05ca25f983e94aab57e04b4cc8282ba0ae44609d1a7366  postmarketos-ui-hildon.post-install"
