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

Jan Steffens heftig at archlinux.org
Sun Oct 9 15:29:16 UTC 2016


    Date: Sunday, October 9, 2016 @ 15:29:15
  Author: heftig
Revision: 277966

1.9.90+2+g108b08c-1

Modified:
  gst-libav/trunk/PKGBUILD

----------+
 PKGBUILD |   56 +++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 37 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-09 15:07:31 UTC (rev 277965)
+++ PKGBUILD	2016-10-09 15:29:15 UTC (rev 277966)
@@ -1,32 +1,50 @@
 # $Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
 
 pkgname=gst-libav
-pkgver=1.8.3
+pkgver=1.9.90+2+g108b08c
 pkgrel=1
-pkgdesc="Gstreamer libav Plugin"
-arch=('i686' 'x86_64')
-license=('GPL')
-url="http://gstreamer.freedesktop.org/"
-depends=('gst-plugins-base-libs' 'bzip2' 'ffmpeg')
-makedepends=('python')
+pkgdesc="GStreamer Multimedia Framework ffmpeg Plugin"
+url="https://gstreamer.freedesktop.org/"
+arch=(i686 x86_64)
+license=(GPL)
+depends=(gst-plugins-base-libs bzip2 ffmpeg)
+makedepends=(python gtk-doc autoconf-archive git)
 options=(!emptydirs)
 provides=("gst-ffmpeg=$pkgver-$pkgrel")
-source=(${url}/src/$pkgname/$pkgname-$pkgver.tar.xz)
-sha256sums=('9006a05990089f7155ee0e848042f6bb24e52ab1d0a59ff8d1b5d7e33001a495')
+_commit=108b08ccdaaba3a030c10e0465a261b49761f129  # master
+source=("git://anongit.freedesktop.org/gstreamer/gst-libav#commit=$_commit"
+        "gst-common::git://anongit.freedesktop.org/gstreamer/common"
+        "git://source.ffmpeg.org/ffmpeg")
+sha256sums=('SKIP'
+            'SKIP'
+            'SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
 prepare() {
-  cd $pkgname-$pkgver
+  cd $pkgname
+
+  git submodule init
+  git config --local submodule.common.url "$srcdir/gst-common"
+  git config --local submodule.gst-libs/ext/libav.url "$srcdir/ffmpeg"
+  git submodule update
+
+  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
 
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
-    --disable-static --with-libav-extra-configure="--enable-runtime-cpudetect" \
-    --with-package-name="GStreamer libav Plugin (Arch Linux)" \
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \
+    --with-package-name="GStreamer ffmpeg Plugin (Arch Linux)" \
     --with-package-origin="http://www.archlinux.org/" \
-    --with-system-libav
+    --with-system-libav --with-libav-extra-configure="--enable-runtime-cpudetect" \
+    --enable-experimental --enable-gtk-doc --disable-static
 
   # https://bugzilla.gnome.org/show_bug.cgi?id=655517
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
@@ -35,11 +53,11 @@
 }
 
 check() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make check
 }
 
 package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="${pkgdir}" install
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list