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

# source: james
TARBALL=distcc-$PKGVER.tar.gz
MD5SUM=e671092c8c10db34a851863799a819c3
SRC_URL=https://github.com/distcc/distcc/releases/download/v$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='python3' # this this is the CLI version of distcc
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: https://www.distcc.org/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
#	CONFFLAGS="$CONFFLAGS --disable-Werror --with-gtk"

	cd /tmp/distcc* &&
	if ! [ -e ./configure ]; then
		./autogen.sh
	fi &&

	# 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
}
