# Maintainer: PktSurf <smlinux@pktsurf.in>
app=goffice
version=0.10.46
build=1sml
homepage="https://git.gnome.org/browse/goffice"
download="https://gitlab.gnome.org/GNOME/goffice/-/archive/GOFFICE_0_10_46/goffice-GOFFICE_0_10_46.tar.bz2"
desc="A GLib/GTK+ set of document-centric objects and charting library"
requires="intltool libxslt libgsf gtk3"

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

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

build() {
  ./configure \
    --prefix=

  for i in po ; do
   printf 'all:\n\ttrue\ninstall:\n\ttrue\nclean:\n\ttrue\n' > "$i"/Makefile
  done

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
2d06889fd8e432d7266de1b17eb0dc7a44911bbea013bcb1eeffa5c4f8ea43421c1c61e6bb8a6dec7dea7fb7fa410d0de0d13a14d5468e911a55d7909fd68f8b  goffice-0.10.46.tar.lz
"
