Date: Friday, April 15, 2016 @ 13:49:32 Author: heftig Revision: 265001
archrelease: copy trunk to extra-x86_64 Added: gst-python/repos/extra-x86_64/PKGBUILD (from rev 265000, gst-python/trunk/PKGBUILD) Deleted: gst-python/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 94 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 52 insertions(+), 42 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-04-15 11:48:09 UTC (rev 265000) +++ PKGBUILD 2016-04-15 11:49:32 UTC (rev 265001) @@ -1,42 +0,0 @@ -# $Id$ -# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> -# Maintainer: Jan de Groot <j...@archlinux.org> - -pkgbase=gst-python -pkgname=('gst-python' 'gst-python2') -pkgver=1.6.2 -pkgrel=2 -pkgdesc="Python bindings for GStreamer" -arch=('i686' 'x86_64') -license=('LGPL') -url="http://gstreamer.freedesktop.org/" -makedepends=('pkg-config' 'python-gobject' 'python2-gobject' 'gst-plugins-base') -source=(http://gstreamer.freedesktop.org/src/gst-python/gst-python-${pkgver}.tar.xz) -md5sums=('14b6cfe1a0db5cc01c6a58f7b4af6184') - -build() { - cp -a "${srcdir}/gst-python-${pkgver}" "${srcdir}/gst-python2-${pkgver}" - - cd "${srcdir}/gst-python-${pkgver}" - ./configure --prefix=/usr - make - - cd "${srcdir}/gst-python2-${pkgver}" - export PYTHON=python2 - ./configure --prefix=/usr - make -} - -package_gst-python() { - depends=('python-gobject' 'gst-plugins-base') - - cd "${srcdir}/gst-python-${pkgver}" - make DESTDIR="${pkgdir}" install -} - -package_gst-python2() { - depends=('python2-gobject' 'gst-plugins-base') - - cd "${srcdir}/gst-python2-${pkgver}" - make DESTDIR="${pkgdir}" install -} Copied: gst-python/repos/extra-x86_64/PKGBUILD (from rev 265000, gst-python/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-04-15 11:49:32 UTC (rev 265001) @@ -0,0 +1,52 @@ +# $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.8.0 +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=('ce45ff17c59f86a3a525685e37b95e6a78a019e709f66a5c4b462a7f7a22f6ea') + +prepare() { + mkdir py2 py3 +} + +_build() ( + cd $1 + # Out-of-tree build fails to check + cp -a ../$pkgbase-$pkgver/* . + ./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 +}