[arch-commits] Commit in ffms2/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Sun Mar 6 16:05:36 UTC 2022
Date: Sunday, March 6, 2022 @ 16:05:35
Author: felixonmars
Revision: 1142703
archrelease: copy trunk to community-staging-x86_64
Added:
ffms2/repos/community-staging-x86_64/
ffms2/repos/community-staging-x86_64/PKGBUILD
(from rev 1142702, ffms2/trunk/PKGBUILD)
----------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
Copied: ffms2/repos/community-staging-x86_64/PKGBUILD (from rev 1142702, ffms2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-03-06 16:05:35 UTC (rev 1142703)
@@ -0,0 +1,59 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=ffms2
+pkgver=2.40
+pkgrel=3
+pkgdesc='A libav/ffmpeg based source library and Avisynth plugin for easy frame accurate access'
+arch=(x86_64)
+url=https://github.com/FFMS/ffms2
+license=(GPL)
+depends=(ffmpeg)
+makedepends=(
+ avisynthplus
+ git
+)
+optdepends=(
+ 'avisynthplus: AviSynth plugin'
+ 'vapoursynth: VapourSynth plugin'
+)
+provides=(
+ avisynth-plugin-ffms2
+ libffms2.so
+ vapoursynth-plugin-ffms2
+)
+_tag=55c2af57f1bdc587ca98d2e28d3d764c00b3e13a
+source=(git+https://github.com/FFMS/ffms2.git#tag=${_tag})
+sha256sums=(SKIP)
+
+prepare() {
+ cd ffms2
+ git cherry-pick -n 586d87de3f896d0c4ff01b21f572375e11f9c3f1
+ mkdir -p src/config
+ autoreconf -fiv
+}
+
+pkgver() {
+ cd ffms2
+ git describe --tags
+}
+
+build() {
+ cd ffms2
+ export CXXFLAGS="$CXXFLAGS $(pkg-config --cflags avisynth) -fpermissive"
+ ./configure \
+ --prefix=/usr \
+ --enable-avisynth \
+ --enable-shared \
+ --disable-static
+ make
+}
+
+package() {
+ make DESTDIR="${pkgdir}" -C ffms2 install
+ for s in {avi,vapour}synth; do
+ install -dm 755 "${pkgdir}"/usr/lib/$s
+ ln -s ../libffms2.so "${pkgdir}"/usr/lib/$s/
+ done
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list