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

# source: james
TARBALL=distcc-2018.05.tar.bz2
MD5SUM=b3ca3a440c17f719214d6166c6a17b62
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='gtk2'
SLACKDESC="distcc: distcc $PKGVER (Distributed C Compiler)  
distcc:  
distcc: distcc is a program to distribute builds of C, C++, Objective C or 
distcc: Objective C++ code across several machines on a network. distcc should 
distcc: always generate the same results as a local build, is simple to 
distcc: install and use, and is usually much faster than a local compile. 
distcc: distcc does not require all machines to share a filesystem, have 
distcc: synchronized clocks, or to have the same libraries or header files 
distcc: installed. They can even have different processors or operating 
distcc: systems, if cross-compilers are installed.  
distcc:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-Werror --with-gtk"
	cd /tmp/distcc* &&
	./autogen.sh &&

	# our gcc is located in /usr/$LIBDIR
	sed -i -e "s|/usr/lib/gcc|/usr/$LIBDIR/gcc|" update-distcc-symlinks* &&
	
	pkg_build_autoconf && 
	pkg_build_slackdesc
}
