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

Jan Steffens heftig at archlinux.org
Sun Oct 9 15:42:05 UTC 2016


    Date: Sunday, October 9, 2016 @ 15:42:04
  Author: heftig
Revision: 277970

1.9.90+1+gb7a78a3-1

Modified:
  gst-python/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++++++++++++++++++++-----------
 1 file changed, 27 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-09 15:39:40 UTC (rev 277969)
+++ PKGBUILD	2016-10-09 15:42:04 UTC (rev 277970)
@@ -4,25 +4,41 @@
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
 pkgbase=gst-python
-pkgname=('gst-python' 'gst-python2')
-pkgver=1.8.3
+pkgname=(gst-python gst-python2)
+pkgver=1.9.90+1+gb7a78a3
 pkgrel=1
 pkgdesc="GStreamer Python binding overrides"
-arch=('i686' 'x86_64')
-license=('LGPL')
-makedepends=('pkg-config' 'python-gobject' 'python2-gobject' 'gst-plugins-base')
-url="http://gstreamer.freedesktop.org/"
-source=(${url}/src/$pkgbase/$pkgbase-${pkgver}.tar.xz)
-sha256sums=('149e7b9c2c361832bc765d39bce004d1ffe1b330c09c42dc902ca48867e804ce')
+url="https://gstreamer.freedesktop.org/"
+arch=(i686 x86_64)
+license=(LGPL)
+makedepends=(pkg-config python-gobject python2-gobject gst-plugins-base git)
+_commit=b7a78a37dc063d9533dc389df0887079ee8b25fa  # master
+source=("git://anongit.freedesktop.org/gstreamer/gst-python#commit=$_commit"
+        "gst-common::git://anongit.freedesktop.org/gstreamer/common")
+sha256sums=('SKIP'
+            'SKIP')
 
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
 prepare() {
   mkdir py2 py3
+  cd $pkgbase
+
+  git submodule init
+  git config --local submodule.common.url "$srcdir/gst-common"
+  git submodule update
+
+  NOCONFIGURE=1 ./autogen.sh
 }
 
+
 _build() (
   cd $1
   # Out-of-tree build fails to check
-  cp -a ../$pkgbase-$pkgver/* .
+  cp -a ../$pkgbase/* .
   ./configure --prefix=/usr
   make
 )
@@ -39,7 +55,7 @@
 
 package_gst-python() {
   pkgdesc="${pkgdesc//Python/Python 3}"
-  depends=('python-gobject' 'gst-plugins-base')
+  depends=(python-gobject gst-plugins-base)
 
   make -C py3 DESTDIR="$pkgdir" install
 }
@@ -46,7 +62,7 @@
 
 package_gst-python2() {
   pkgdesc="${pkgdesc//Python/Python 2}"
-  depends=('python2-gobject' 'gst-plugins-base')
+  depends=(python2-gobject gst-plugins-base)
 
   make -C py2 DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list