# Description: Generic Cascading Style Sheet parsing and manipulation toolkit
# URL: https://gitlab.gnome.org/GNOME/libcroco
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: glib libxml2

name=libcroco
version=0.6.13
release=2
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)

build() {
  cd $name-$version

  ./configure \
    --prefix=/usr \
    --disable-gtk-doc

  make
  make DESTDIR=$PKG install

  ln -s libcroco-${version%.*}.la $PKG/usr/lib/libcroco.la

  rm -r $PKG/usr/share
}
