app=rrdtool
version=1.7.2
build=1sml
homepage="https://www.rrdtool.org"
download="https://oss.oetiker.ch/rrdtool/pub/rrdtool-1.7.2.tar.gz"
desc="Data logging and graphing application"
requires="perl python3 lua"

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

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

  ./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="
453230efc68aeb4a12842d20a9d246ba478a79c2f6bfd9693a91837c1c1136abe8af177be64fe29aa40bf84ccfce7f2f15296aefe095e89b8b62aef5a7623e29  rrdtool-1.7.2.tar.gz
"
