void-packages/srcpkgs/l-smash/template

41 lines
949 B
Bash
Raw Normal View History

2017-08-12 14:14:13 +00:00
# Template file for 'l-smash'
pkgname=l-smash
version=2.9.1
revision=1
build_style=configure
configure_args="--enable-shared --disable-static"
short_desc="MP4 muxer and other tools"
maintainer="DirectorX <void.directorx@protonmail.com>"
license="ISC"
homepage="https://github.com/l-smash/l-smash"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=17f24fc8bffba753f8c628f1732fc3581b80362341274747ef6fb96af1cac45c
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.*"
}
}