# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
pkgname=postmarketos-ui-xfce4
pkgver=0.3
pkgrel=0
pkgdesc="(X11) Lightweight GTK+2 desktop (stylus recommended)"
url="https://gitlab.com/postmarketOS/xfce4-phone"
arch="noarch"
license="GPL-3.0-or-later"
depends="xfce4 xfce4-terminal xfce4-battery-plugin xfce4-pulseaudio-plugin xfce4-screensaver xfce4-whiskermenu-plugin
	network-manager-applet xorg-server lightdm lightdm-openrc lxpolkit mesa-egl gnome-keyring
	postmarketos-artwork-wallpapers postmarketos-artwork-icons faenza-icon-theme
	pm-utils pavucontrol pulseaudio-utils"
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/postmarketOS/xfce4-phone/-/archive/$pkgver/xfce4-phone-$pkgver.tar.gz
	60-lightdm-autologin.conf"
options="!check"
builddir="$srcdir/xfce4-phone-$pkgver"

package() {
	install -d -m755 "$pkgdir"/etc/skel
	cp -a "$builddir"/config "$pkgdir"/etc/skel/.config

	install -Dm644 "$srcdir"/60-lightdm-autologin.conf \
		"$pkgdir"/usr/share/lightdm/lightdm.conf.d/60-autologin.conf
}

sha512sums="9adf87cdb531ad0eb4ab0d42dd4d43c88da117fdb8c7583c58ef2fcda52ce658e9234fe0451e5bf7d3768cdabf966c9dc27bda360e53ec44c04856ddfa941ab4  postmarketos-ui-xfce4-0.3.tar.gz
3841294daffdd3e0da5a7ba155ba8c21e9e5a2f2ba5b3b5ffa3ea6a16486625d3655d03f8c18740fcddfbca673c42a5289ec3b22720cfbbdd56fde8fdc3bf9b0  60-lightdm-autologin.conf"
