Date: Sunday, October 9, 2016 @ 15:42:43 Author: heftig Revision: 277973
archrelease: copy trunk to testing-i686, testing-x86_64 Added: gst-python/repos/testing-i686/ gst-python/repos/testing-i686/PKGBUILD (from rev 277972, gst-python/trunk/PKGBUILD) gst-python/repos/testing-x86_64/ gst-python/repos/testing-x86_64/PKGBUILD (from rev 277972, gst-python/trunk/PKGBUILD) -------------------------+ testing-i686/PKGBUILD | 68 ++++++++++++++++++++++++++++++++++++++++++++++ testing-x86_64/PKGBUILD | 68 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+) Copied: gst-python/repos/testing-i686/PKGBUILD (from rev 277972, gst-python/trunk/PKGBUILD) =================================================================== --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2016-10-09 15:42:43 UTC (rev 277973) @@ -0,0 +1,68 @@ +# $Id$ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com> +# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Jan de Groot <j...@archlinux.org> + +pkgbase=gst-python +pkgname=(gst-python gst-python2) +pkgver=1.9.90+1+gb7a78a3 +pkgrel=1 +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=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/* . + ./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/testing-x86_64/PKGBUILD (from rev 277972, gst-python/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2016-10-09 15:42:43 UTC (rev 277973) @@ -0,0 +1,68 @@ +# $Id$ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com> +# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Jan de Groot <j...@archlinux.org> + +pkgbase=gst-python +pkgname=(gst-python gst-python2) +pkgver=1.9.90+1+gb7a78a3 +pkgrel=1 +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=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/* . + ./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 +}