void-packages/srcpkgs/vapoursynth/template

35 lines
1,008 B
Bash

# Template file for 'vapoursynth'
pkgname=vapoursynth
version=R32
revision=2
build_style=gnu-configure
hostmakedepends="automake pkg-config libtool yasm python3 python-Cython python3.4-Cython"
makedepends="python3.4-devel zimg-devel libmagick-devel libass-devel"
short_desc="Application for video manipulation"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="LGPL-2"
homepage="http://www.vapoursynth.com"
distfiles="https://github.com/vapoursynth/vapoursynth/archive/$version.tar.gz"
checksum=e9560f64ba298c2ef9e6e3d88f63ea0ab88e14bbd0e9feee9c621b9224e408c8
pre_configure() {
./autogen.sh
case $XBPS_TARGET_MACHINE in
arm*musl)
sed -i '/#include <sys\/auxv.h>/a #include <asm/hwcap.h>' src/core/cpufeatures.c
sed -i -e 's/HWCAP_ARM_/HWCAP_/' src/core/cpufeatures.c
;;
*)
;;
esac
}
vapoursynth-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}