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

# source: james
TARBALL=compton-20170430.tar.bz2
MD5SUM=c6aa166308d4aca7d762b92fc6fd8b83
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='mesa libdrm libpcre libconfig' # asciidoc build-time only
SLACKDESC="compton: compton $PKGVER (X lightweight compositor)  
compton:  
compton: compton is a lightweight compositor for X windows. It it a fork of 
compton: xcompmgr-dana, which itself is a fork of the original xcompmgr.  
compton: 
compton: 
compton: 
compton: 
compton: 
compton: 
compton: https://github.com/chjj/compton
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/compton*
	BUILDFLAGS="NO_DBUS=1 COMPTON_VERSION=$PKGVER"
	make $MAKEFLAGS $BUILDFLAGS &&
	make $BUILDFLAGS install &&

	install -dm755 /etc/xdg &&
	install -m644 compton.sample.conf /etc/xdg &&
	
	pkg_build_slackdesc &&
	
	# don't display it on the menu
	echo "NoDisplay=true" >> /usr/share/applications/compton.desktop
}
