app=libgc
version=8.0.4
build=1sml
homepage="https://www.hboehm.info/gc/"
download="https://www.hboehm.info/gc/gc_source/gc-$version.tar.gz"
desc="Conservative garbage collector for C and C++"
requires="gcc-libs"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-cplusplus \
    --enable-threads=pthreads \
    --disable-static \
    $builddist

  make
  make install DESTDIR=$pkg

  mkfinalpkg
}

sha512sums="
2a241a485ea689a1cae45aba29b21c8ac80956c8baec7b78a218d5ab59bdaa77f2c71f2f29d05e68e553d3160323da09e064d89045d56e03c0c7e9b5c12cd091  gc-8.0.4.tar.lz
"
