From 10ab8ceb8287cc7f2c78e4dc53bb87705f760b2c Mon Sep 17 00:00:00 2001 From: Yukari Chiba Date: Mon, 29 Jun 2026 14:12:00 +0800 Subject: [PATCH] [vapoursynth] R77-1: new upstream version --- PKGBUILD | 49 +++++++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 9a79f828f..b17dd8819 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Yukari Chiba pkgname=vapoursynth -pkgver=R73 +pkgver=R77 pkgrel=2 pkgdesc='A video processing framework with the future in mind' arch=(x86_64 aarch64 riscv64 loongarch64) @@ -15,34 +15,47 @@ depends=( makedepends=( cython git + meson-python + python-build + python-installer + symlinks ) source=( https://github.com/vapoursynth/vapoursynth/archive/$pkgver.tar.gz vapoursynth.xml ) -sha256sums=('1bb8ffe31348eaf46d8f541b138f0136d10edaef0c130c1e5a13aa4a4b057280' +sha256sums=('f71653355983fc245ef811a64d2b8f5b0ba131c0bb330b3346d435e1926187e2' '71b26d66d42b9176b4f41e2f79685b8afb4d66c61e21b9aa3e84d87d3508567f') -prepare() { - cd vapoursynth-$pkgver - ./autogen.sh -} - build() { cd vapoursynth-$pkgver - ./configure \ - --prefix=/usr \ - --disable-static - - make + python -m build --wheel --no-isolation } package() { - cd vapoursynth-$pkgver - - make DESTDIR="${pkgdir}" install - - _install_license_ src/core/ter-116n.ofl.txt - install -Dm 644 ../vapoursynth.xml -t "${pkgdir}"/usr/share/mime/packages/ + python -m installer --destdir="$pkgdir" vapoursynth-$pkgver/dist/*.whl + + local _sitepkgs + _sitepkgs="$(python -c 'import site; print(site.getsitepackages()[0])')" + ln -s "${pkgdir}${_sitepkgs}/vapoursynth/libvapoursynth.so.4" "${pkgdir}/usr/lib/libvapoursynth.so.4" + ln -s "${pkgdir}/usr/lib/libvapoursynth.so.4" "${pkgdir}/usr/lib/libvapoursynth.so" + ln -s "${pkgdir}${_sitepkgs}/vapoursynth/libvsscript.so" "${pkgdir}/usr/lib/libvapoursynth-script.so.0" + ln -s "${pkgdir}/usr/lib/libvapoursynth-script.so.0" "${pkgdir}/usr/lib/libvapoursynth-script.so" + + install -d -m755 "${pkgdir}/usr"/{include,lib/pkgconfig} + ln -s "${pkgdir}${_sitepkgs}/vapoursynth/include" "${pkgdir}/usr/include/vapoursynth" + ln -s "${pkgdir}${_sitepkgs}/vapoursynth/pkgconfig/vapoursynth.pc" "${pkgdir}/usr/lib/pkgconfig/vapoursynth.pc" + + symlinks -rcv "${pkgdir}/usr" + + install -d -m755 "${pkgdir}${_sitepkgs}/vapoursynth/plugins" + install -Dm 644 vapoursynth-$pkgver/src/core/ter-116n.ofl.txt -t "${pkgdir}/usr/share/licenses/vapoursynth" + install -Dm 644 vapoursynth.xml -t "${pkgdir}/usr/share/mime/packages" + + local _libvsscript="${_sitepkgs}/vapoursynth/libvsscript.so" + printf "export VSSCRIPT_PATH='%s'\n" "${_libvsscript}" \ + | install -Dm 644 /dev/stdin "${pkgdir}/etc/profile.d/vapoursynth.sh" + printf "set --export --global VSSCRIPT_PATH '%s'\n" "${_libvsscript}" \ + | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_conf.d/vapoursynth.fish" }