# Template file for 'das-settings'
# In-tree package: sources are in files/ (FILESDIR).
#
# Defaults go to /etc/xdg/das, which /etc/profile.d/das-xdg.sh puts in front of
# /etc/xdg: stock Xfce files stay untouched and users' own changes still win.
pkgname=das-settings
version=0.1.0
revision=1
create_wrksrc=yes
depends="das-theme lightdm lightdm-gtk-greeter xfce4-notifyd xfce4-panel
 xfce4-pulseaudio-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin xfconf
 xfdesktop xfwm4 xrandr"
short_desc="Das OS desktop defaults: Xfce panel, theme, fonts, login screen"
maintainer="Das <anry.das@gmail.com>"
license="MIT"
homepage="https://git.das.org.ua/das/Das-OS"
conf_files="/etc/profile.d/das-xdg.sh /etc/xdg/das/xfce4/xfconf/xfce-perchannel-xml/*.xml"

do_install() {
	local xml

	vinstall "${FILESDIR}/profile.d/das-xdg.sh" 644 etc/profile.d
	for xml in "${FILESDIR}"/xfconf/*.xml; do
		vinstall "${xml}" 644 etc/xdg/das/xfce4/xfconf/xfce-perchannel-xml
	done

	vinstall "${FILESDIR}/bin/das-session-init" 755 usr/libexec/das
	vinstall "${FILESDIR}/autostart/das-session-init.desktop" 644 etc/xdg/autostart

	vinstall "${FILESDIR}/lightdm/50-das.conf" 644 usr/share/lightdm/lightdm.conf.d
	vinstall "${FILESDIR}/lightdm/50-das-greeter.conf" 644 \
		usr/share/lightdm/lightdm-gtk-greeter.conf.d 50-das.conf
	vlicense "${FILESDIR}/LICENSE"
}
