[arch-commits] Commit in gst-python/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 25 17:17:24 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:17:23
  Author: foutrelis
Revision: 284739

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  gst-python/repos/staging-i686/
  gst-python/repos/staging-i686/PKGBUILD
    (from rev 284738, gst-python/trunk/PKGBUILD)
  gst-python/repos/staging-x86_64/
  gst-python/repos/staging-x86_64/PKGBUILD
    (from rev 284738, gst-python/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   68 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   68 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)

Copied: gst-python/repos/staging-i686/PKGBUILD (from rev 284738, gst-python/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2016-12-25 17:17:23 UTC (rev 284739)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=gst-python
+pkgname=(gst-python gst-python2)
+pkgver=1.10.2
+pkgrel=2
+pkgdesc="GStreamer Python binding overrides"
+url="https://gstreamer.freedesktop.org/"
+arch=(i686 x86_64)
+license=(LGPL)
+makedepends=(pkg-config python-gobject python2-gobject gst-plugins-base git)
+_commit=4c635b97a1b202b6bb7d32a8f7f5ceaa12eeb60f  # tags/1.10.2^0
+source=("git+https://anongit.freedesktop.org/git/gstreamer/gst-python#commit=$_commit"
+        "gst-common::git+https://anongit.freedesktop.org/git/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/* .
+  ./configure --prefix=/usr
+  make
+)
+
+build() {
+  _build py3
+  PYTHON=python2 _build py2
+}
+
+check() {
+  make -C py3 check
+  make -C py2 check
+}
+
+package_gst-python() {
+  pkgdesc="${pkgdesc//Python/Python 3}"
+  depends=(python-gobject gst-plugins-base)
+
+  make -C py3 DESTDIR="$pkgdir" install
+}
+
+package_gst-python2() {
+  pkgdesc="${pkgdesc//Python/Python 2}"
+  depends=(python2-gobject gst-plugins-base)
+
+  make -C py2 DESTDIR="$pkgdir" install
+}

Copied: gst-python/repos/staging-x86_64/PKGBUILD (from rev 284738, gst-python/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2016-12-25 17:17:23 UTC (rev 284739)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=gst-python
+pkgname=(gst-python gst-python2)
+pkgver=1.10.2
+pkgrel=2
+pkgdesc="GStreamer Python binding overrides"
+url="https://gstreamer.freedesktop.org/"
+arch=(i686 x86_64)
+license=(LGPL)
+makedepends=(pkg-config python-gobject python2-gobject gst-plugins-base git)
+_commit=4c635b97a1b202b6bb7d32a8f7f5ceaa12eeb60f  # tags/1.10.2^0
+source=("git+https://anongit.freedesktop.org/git/gstreamer/gst-python#commit=$_commit"
+        "gst-common::git+https://anongit.freedesktop.org/git/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/* .
+  ./configure --prefix=/usr
+  make
+)
+
+build() {
+  _build py3
+  PYTHON=python2 _build py2
+}
+
+check() {
+  make -C py3 check
+  make -C py2 check
+}
+
+package_gst-python() {
+  pkgdesc="${pkgdesc//Python/Python 3}"
+  depends=(python-gobject gst-plugins-base)
+
+  make -C py3 DESTDIR="$pkgdir" install
+}
+
+package_gst-python2() {
+  pkgdesc="${pkgdesc//Python/Python 2}"
+  depends=(python2-gobject gst-plugins-base)
+
+  make -C py2 DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list