# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxdg-basedir
pkgver=1.2.3
pkgrel=1
pkgdesc="library for XDG base dir specification"
url="https://github.com/davmac314/libxdg-basedir"
arch="all"
license="MIT"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-$pkgver.tar.gz"
builddir="$srcdir/libxdg-basedir-libxdg-basedir-$pkgver"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static
	make
}

check() {
	make check
}

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

sha512sums="
e672da0d9cd3c27c9113f6053b79127e615e5d84bde81305242f506e930869d8492304aac26a0296528d5a32530e4a743acecb6a25f58372ac597af284429f7c  libxdg-basedir-1.2.3.tar.gz
"
