void-packages/srcpkgs/ffms2/template

50 lines
1.1 KiB
Bash

# Template file for 'ffms2'
pkgname=ffms2
version=2.23.1
revision=3
_version=2.23
wrksrc="${pkgname}-${_version}"
build_style=gnu-configure
configure_args="--enable-shared --disable-static"
hostmakedepends="pkg-config"
makedepends="ffmpeg-devel zlib-devel"
short_desc="A libav/ffmpeg based frames server"
maintainer="DirectorX <void.directorx@protonmail.com>"
license="MIT, GPL-3.0-or-later"
homepage="https://github.com/FFMS/ffms2"
distfiles="${homepage}/archive/${_version}.tar.gz"
checksum=b09b2aa2b1c6f87f94a0a0dd8284b3c791cbe77f0f3df57af99ddebcd15273ed
post_install() {
vmkdir usr/lib/vapoursynth
pushd "$DESTDIR/usr/lib/vapoursynth"
ln -sr $(ls ../libffms2.so.*.* | head -1) libffms2.so
popd
vlicense COPYING
}
libffms2-devel_package() {
depends="${makedepends} libffms2>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libffms2_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
vapoursynth-ffms2-source_package() {
depends="libffms2>=${version}_${revision}"
pkg_install() {
vmove usr/lib/vapoursynth
}
}