app=libgsf
version=1.14.45
build=1sml
homepage="https://gitlab.gnome.org/GNOME/libgsf.git"
download="https://gitlab.gnome.org/GNOME/libgsf/-/archive/LIBGSF_1_14_45/libgsf-LIBGSF_1_14_45.tar.bz2"
desc="An extensible I/O abstraction library for dealing with structured file formats"
requires="bzip2 libxml2 unzip perl-modules gdk-pixbuf xz"

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

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

  ./configure \
    --prefix="" \
    --disable-static \
    --disable-nls \
    --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="
78312e73771ca64375d713e9890b6492ea573d75a3742d4e1ca189fea4ff2292a597462137c11a3451205c99c661bab8cc59bd31a482d21eedb9e0a1be161b96  libgsf-1.14.45.tar.lz
"
