#Maintainer: Dimitris Tzemos <djemos~at~slackel~dot~gr>

pkgname=xorg-disable-composite
pkgver=14.1
pkgrel=1dj
arch=noarch
options=('noautodotnew' 'nosrcpack') 
sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"xorg-disable-composite (disables composite extensions)"
"This package disables the composite extensions for Xorg by adding an"
"/etc/X11/xorg.conf.d/disable-composite.conf file. You can remove the"
"package to enable composite extensions again. Xorg has to be restarted"
"for the changes to take effect."
)


build() {
	cd $startdir/src/

        mkdir -p $startdir/pkg/etc/X11/xorg.conf.d/

cat << EOF > $startdir/pkg/etc/X11/xorg.conf.d/disable-composite.conf
Section "Extensions"
Option "Composite" "Disable"
EndSection

EOF

	chown -R root:root $startdir/pkg/
}