# Template file for 'libtaginfo'
pkgname=libtaginfo
version=0.1.6
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="taglib-devel"
short_desc="Library for reading media metadata"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="https://bitbucket.org/shuerhaaken/libtaginfo"
distfiles="https://bitbucket.org/shuerhaaken/libtaginfo/downloads/${pkgname}-${version}.tar.gz"
checksum=7473b7dd52471fa1c40766b71ecce7cd12e9641491ec59c4eb9b977b5d796345
long_desc="
 TagInfo is a convenience wrapper for taglib with C and vala bindings.

 Features are reading/writing fields like: Artist, Album, Title, Genre,
 AlbumArtist, Comments, Disk number, Compilation flag, User labels, Embedded
 Images, Lyrics, Audio properties (length, bitrate, samplerate, channels ...),
 and much more."

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

libtaginfo_package() {
	pkg_install() {
		vmove usr
	}
}
