# Template file for 'lilv'
pkgname=lilv
version=0.14.4
revision=2
build_style=waf
configure_args="--dyn-manifest"
makedepends="pkg-config python serd-devel>=0.18.0 sord-devel
 sratom-devel>=0.4.0 lv2"
short_desc="Lilv is a simple yet powerful C API for using LV2 plugins."
maintainer="davehome <davehome@redthumb.info.tm>"
license="ISC"
homepage="http://drobilla.net/software/lilv/"
distfiles="http://download.drobilla.net/${pkgname}-${version}.tar.bz2"
checksum=4a92b3961f1483370509200741c33e826e4205308bee09923d0fd938653fdf8b
long_desc="
 Lilv is a library to make the use of LV2 plugins as simple as possible for
 applications. Lilv is the successor to SLV2, rewritten to be significantly
 faster and have minimal dependencies."

liblilv_package() {
	short_desc="${short_desc} - Runtime library"
	pkg_install() {
		vmove "usr/lib/*.so*"
		chmod 755 ${PKGDESTDIR}/usr/lib/*.so*
	}
}

lilv-bash-completion_package() {
	depends="bash-completion lilv"
	short_desc="${short_desc} - Bash completion for Lilv"
	pkg_install() {
		vmove usr/etc
	}
}

lilv-devel_package() {
	depends="sord-devel liblilv>=${version}"
	short_desc="${short_desc} - Development files"
	pkg_install() {
        	vmove usr/include
        	vmove usr/lib/pkgconfig
	}
}

lilv_package() {
	pkg_install() {
		vmove usr
	}
}
