# Maintainer: PktSurf <smlinux@pktsurf.in>
app=rrdtool
version=1.7.2
build=1sml
homepage="https://www.rrdtool.org"
download="https://oss.oetiker.ch/rrdtool/pub/rrdtool-$version.tar.gz"
desc="Data logging and graphing application"
requires="perl python3 lua"

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

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

build() {
  ./configure \
    --prefix= \
    --sysconfdir=/etc \
    --enable-perl \
    --enable-ruby \
    --enable-python \
    --enable-lua \
    --disable-libwrap \
    --enable-perl-site-install \
    --with-perl-options='INSTALLDIRS=vendor' 

  make 
  make install DESTDIR=$pkg

  cp COPYRIGHT $pkgdocs/

  mkfinalpkg
}

sha512sums="
ed7331f68f4a53e0409237826bbb9747ba81ac99466d15e33cae267137918180f6db31586d19c4e892d9b62eac06a190e6e7ffceb0052ff47616f77afb2cb709  rrdtool-1.7.2.tar.lz
"
