# Description: interface library to access/deal with tags for identifying languages
# URL: http://tagoh.bitbucket.org/liblangtag/index.html
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: glib libxml2

name=liblangtag
version=0.6.7
release=1
source=(https://bitbucket.org/tagoh/liblangtag/downloads/$name-$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

  CONFIG_SHELL=/bin/bash \
  ./configure --prefix=/usr
  make
  make DESTDIR=$PKG install

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