[arch-commits] Commit in gst-python/repos (2 files)
Jan Steffens
heftig at archlinux.org
Sun Mar 11 04:32:53 UTC 2018
Date: Sunday, March 11, 2018 @ 04:32:52
Author: heftig
Revision: 318533
archrelease: copy trunk to gnome-unstable-x86_64
Added:
gst-python/repos/gnome-unstable-x86_64/
gst-python/repos/gnome-unstable-x86_64/PKGBUILD
(from rev 318532, gst-python/trunk/PKGBUILD)
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
Copied: gst-python/repos/gnome-unstable-x86_64/PKGBUILD (from rev 318532, gst-python/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD 2018-03-11 04:32:52 UTC (rev 318533)
@@ -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.13.90
+pkgrel=1
+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=abb68ad440c25d4a4236e11ab14ca2754083b10a # tags/1.13.90^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