# Template file for 'id3lib'
pkgname=id3lib
version=3.8.3
revision=7
build_style=gnu-configure
hostmakedepends="libtool automake"
makedepends="zlib-devel"
short_desc="Library for reading, writing, and manipulating ID3v1 and ID3v2 tags"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.0-or-later"
homepage="http://id3lib.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079

pre_configure() {
	libtoolize -fc
	aclocal
	autoconf
	automake --add-missing --copy
}

id3lib-devel_package() {
	depends="$makedepends ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
