app=distcc
version=3.3.3
build=1sml
homepage="https://distcc.github.io/"
download="https://github.com/distcc/distcc/releases/download/v3.3.3/distcc-3.3.3.tar.gz"
desc="Distributed C and C++ compiler and daemon"
requires="popt"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  LDFLAGS="-static" \
  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --sysconfdir=/etc \
    --without-libiberty \
    --disable-Werror \
    --without-avahi

  make LDFLAGS="-L/lib -static" 
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
cf3de9634244f8d8ab008d3a8a6d49eccb27923b3cf2e55ec2d72493981cf95e634c1b51d35e85d8ffb489625aca594a5b3e03143cebaa1d87dc238070976dc1  distcc-3.3.3.tar.lz
"
