### this file is sourced not run
PKGBUILD=1
PKGARCH=x86_64

# source: james

# release tarball
#PKGVER=
#TARBALL=
#MD5SUM=
#SRC_URL=
#BUNDLE=

# git-master tarball
PKGVER=1.0.2
MD5SUM=b536ce124b1da046c4ad2e284eb76118
hash=7adc0f2b3bf8ecdad14b3fd2e8ea9266e232e0d1 # this just one commit after 1.0.2 and affect build-time only
hash7=${hash#???????}; hash7=${hash%$hash7}
TARBALL=xsettingsd-$PKGVER-$hash7.tar.gz
SRC_URL=https://github.com/derat/xsettingsd/archive/$hash.tar.gz


SLACKREQ='libX11'
SLACKDESC="xsettingsd: xsettingsd $PKGVER (Lightweight XSETTINGS daemon)
xsettingsd: 
xsettingsd: xsettingsd is daemon that implement XSETTINGS specification. It is an 
xsettingsd: alternative to gnome-settings-daemon for users who don't use GNOME 
xsettingsd: but runs GTK+ applications and want to configure things such as 
xsettingsd: themes, font antialiasing/hinting, and UI sound effects.
xsettingsd: 
xsettingsd: https://github.com/derat/xsettingsd
xsettingsd: 
xsettingsd: 
xsettingsd: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	pkg_build_cmake &&
	pkg_build_slackdesc &&

	# default settings with our default theme in it
	mkdir -p /etc/xdg/xsettingsd/ &&
	echo 'Net/ThemeName "Adwaita"' > /etc/xdg/xsettingsd/xsettingsd.conf &&

	# we couldn't care less about systemd
	rm -r /usr/lib/systemd
}
