[arch-commits] Commit in gst-python/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Jul 19 07:28:21 UTC 2018


    Date: Thursday, July 19, 2018 @ 07:28:20
  Author: felixonmars
Revision: 329026

archrelease: copy trunk to staging-x86_64

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

----------+
 PKGBUILD |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

Copied: gst-python/repos/staging-x86_64/PKGBUILD (from rev 329025, gst-python/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-07-19 07:28:20 UTC (rev 329026)
@@ -0,0 +1,69 @@
+# $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.14.1
+pkgrel=2
+pkgdesc="GStreamer Python binding overrides"
+url="https://gstreamer.freedesktop.org/"
+arch=(x86_64)
+license=(LGPL)
+makedepends=(python-gobject python2-gobject gst-plugins-base-libs git)
+_commit=cee554e6c9115487167e8c599afb25c3408257d9  # tags/1.14.1^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() {
+  cd $pkgbase
+
+  git submodule init
+  git config --local submodule.common.url "$srcdir/gst-common"
+  git submodule update
+
+  NOCONFIGURE=1 ./autogen.sh
+
+  cd ..
+  cp -a $pkgbase py2
+  cp -a $pkgbase py3
+}
+
+
+_build() (
+  cd py$1
+  PYTHON=/usr/bin/python$1 ./configure --prefix=/usr
+  make
+)
+
+build() {
+  _build 2
+  _build 3
+}
+
+check() {
+  make -C py3 check
+  make -C py2 check
+}
+
+package_gst-python() {
+  pkgdesc="${pkgdesc//Python/Python 3}"
+  depends=(python-gobject gst-plugins-base-libs)
+
+  make -C py3 DESTDIR="$pkgdir" install
+}
+
+package_gst-python2() {
+  pkgdesc="${pkgdesc//Python/Python 2}"
+  depends=(python2-gobject gst-plugins-base-libs)
+
+  make -C py2 DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list