# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=liblangtag
pkgver=0.6.2
pkgrel=0
pkgdesc="Interface library to access/deal with tags for identifying languages"
url="http://tagoh.bitbucket.org/liblangtag/index.html"
arch="all"
license="LGPL-3.0"
depends=""
depends_dev="glib-dev"
makedepends="$depends_dev gobject-introspection libtool libxml2-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://bitbucket.org/tagoh/$pkgname/downloads/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
	make -k check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="284f120247323a35122ab32b4b359c45  liblangtag-0.6.2.tar.bz2"
sha256sums="d6242790324f1432fb0a6fae71b6851f520b2c5a87675497cf8ea14c2924d52e  liblangtag-0.6.2.tar.bz2"
sha512sums="812e00d0a26eedc1fa9bee6d0b9da53b8faca8d1fc5f93a0423106b5b777c7b1ec5854da7d02606c215ad1a1248de93016559c7a55288a4b427857fb1ed1ad8f  liblangtag-0.6.2.tar.bz2"
