# Template file for 'libid3tag'
pkgname=libid3tag
version=0.16.4
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="pkg-config gperf"
makedepends="zlib-devel"
short_desc="ID3 tag library, part of MAD (MPEG Audio Decoder)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://codeberg.org/tenacityteam/libid3tag"
distfiles="https://codeberg.org/tenacityteam/libid3tag/archive/${version}.tar.gz"
checksum=ceb88ada1aa867c87c1d748a8aa40e68db5b0d2df636a9dab0ab1f7741d5e009
make_check=no # no tests

post_install() {
	vinstall ${FILESDIR}/id3tag.pc 644 usr/lib/pkgconfig
}

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