# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libgsf
version=1.14.50
build=1sml
homepage="https://gitlab.gnome.org/GNOME/libgsf.git"
download="https://download.gnome.org/sources/libgsf/1.14/libgsf-$version.tar.xz"
desc="An extensible I/O abstraction library for dealing with structured file formats"
requires="bzip2 libxml2 unzip perl-modules gdk-pixbuf xz"

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

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

build() {
  ./configure \
    --prefix= \
    --disable-static \
    --with-bz2

  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="
179292acc75846e1e65a824f8b7c41ed4fdf558359bc9ef8f2ea9bb88e025678106acdf79a98acab9473a654396d280c5ddd7334e40c7ee450dcb1fd5aee80df  libgsf-1.14.50.tar.lz
"