# Template file for 'l-smash'
pkgname=l-smash
version=2.14.5
revision=1
build_style=configure
configure_args="--enable-shared --disable-static"
hostmakedepends="which"
short_desc="MP4 muxer and other tools"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://github.com/l-smash/l-smash"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=e6f7c31de684f4b89ee27e5cd6262bf96f2a5b117ba938d2d606cf6220f05935

do_configure() {
	: ${configure_script:=./configure}
	${configure_script} ${configure_args} --cc="${CC}" \
	--extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}" \
	--prefix=/usr
}

post_install() {
	vlicense LICENSE
}

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

liblsmash_package() {
	short_desc+=" - runtime library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}
