# Description: interface library to access/deal with tags for identifying languages
# URL: https://tagoh.github.io/liblangtag/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: glib libxml2
# Optional: glib-introspection

name=liblangtag
version=0.6.8
release=1
source=(https://gitlab.com/-/project/74684761/uploads/9f74bd278e6edfbf1093605d38fb7a97/liblangtag-$version.tar.bz2
  langtag-libtool-rpath.patch.0
  liblangtag-bundled-soname.patch.0)

build() {
  cd $name-$version

  patch -Np0 -i $SRC/langtag-libtool-rpath.patch.0
  patch -Np0 -i $SRC/liblangtag-bundled-soname.patch.0

  ./configure --prefix=/usr
  make
  make DESTDIR=$PKG install

  rm -r $PKG/usr/share/gtk-doc
}
