# Template file for 'taglib'
pkgname=taglib
version=2.3.1
revision=1
build_style=cmake
configure_args="-DWITH_MP4=ON -DWITH_ASF=ON -DBUILD_SHARED_LIBS=ON"
hostmakedepends="pkg-config"
makedepends="zlib-devel utfcpp"
short_desc="Library for accessing ID tags in various media files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later, MPL-1.1"
homepage="https://taglib.github.io/"
changelog="https://raw.githubusercontent.com/taglib/taglib/master/CHANGELOG.md"
distfiles="https://github.com/taglib/taglib/archive/v${version}.tar.gz"
checksum=72c3176432b065978dee670b674aaeae7d9a9f37c721ee578181e9231832bca1

taglib-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} zlib-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/bin
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
