[arch-commits] Commit in ffms2/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Sun Sep 13 10:36:28 UTC 2020


    Date: Sunday, September 13, 2020 @ 10:36:28
  Author: alucryd
Revision: 705098

upgpkg: ffms2 2.40-1

Modified:
  ffms2/trunk/PKGBUILD

----------+
 PKGBUILD |   64 ++++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 45 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-13 10:19:48 UTC (rev 705097)
+++ PKGBUILD	2020-09-13 10:36:28 UTC (rev 705098)
@@ -1,25 +1,51 @@
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 
 pkgname=ffms2
-pkgver=2.23.1
-pkgrel=4
+pkgver=2.40
+pkgrel=1
 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=('git')
-provides=('vapoursynth-plugin-ffms2'
-          'libffms2.so')
-source=("ffms2-${pkgver}.tar.gz::https://github.com/FFMS/ffms2/archive/${pkgver%.*}.tar.gz")
-sha256sums=('b09b2aa2b1c6f87f94a0a0dd8284b3c791cbe77f0f3df57af99ddebcd15273ed')
+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)
 
+pkgver() {
+  cd ffms2
+
+  git describe --tags
+}
+
+prepare() {
+  cd ffms2
+
+  mkdir -p src/config
+  autoreconf -fiv
+}
+
 build() {
-  cd ffms2-${pkgver%.*}
+  cd ffms2
 
+  export CXXFLAGS="$CXXFLAGS $(pkg-config --cflags avisynth)"
+
   ./configure \
-    --prefix='/usr' \
-    --enable-avresample \
+    --prefix=/usr \
+    --enable-avisynth \
     --enable-shared \
     --disable-static
   make
@@ -26,12 +52,12 @@
 }
 
 package() {
-  cd ffms2-${pkgver%.*}
+  make DESTDIR="${pkgdir}" -C ffms2 install
 
-  make DESTDIR="${pkgdir}" install
-
-  install -dm 755 "${pkgdir}"/usr/lib/vapoursynth
-  ln -s ../libffms2.so "${pkgdir}"/usr/lib/vapoursynth/
+  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