# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Contributor: Nicolas Lorin <androw95220@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=libxspf
pkgver=1.2.1
pkgrel=2
pkgdesc="Brings XSPF playlist reading and writing support to C++ application"
url="https://libspiff.sourceforge.net/"
arch="all"
license="BSD-3-Clause"
makedepends="expat-dev uriparser-dev cpptest-dev autoconf automake libtool"
subpackages="$pkgname-dev"
source="https://gitlab.xiph.org/xiph/libxspf/-/archive/libxspf-$pkgver/libxspf-libxspf-$pkgver.tar.gz
	"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

build() {
	./autogen.sh
	./configure --prefix=/usr
	make
}

check() {
	make check
}

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

sha512sums="
fe08040710977f03312d4c50c717c35a99c66f22cd8b1f330b1537625d6cb08dcc04526ca9c289373e393d41b8f69766b367c5be3a6393c0edc131acb74c433b  libxspf-libxspf-1.2.1.tar.gz
"
