[arch-commits] Commit in gst-python/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Wed Feb 3 21:06:19 UTC 2016


    Date: Wednesday, February 3, 2016 @ 22:06:19
  Author: spupykin
Revision: 160123

upgpkg: gst-python 1.6.2-2

upd

Modified:
  gst-python/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-03 21:04:45 UTC (rev 160122)
+++ PKGBUILD	2016-02-03 21:06:19 UTC (rev 160123)
@@ -2,25 +2,41 @@
 # Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
-pkgname=gst-python
+pkgbase=gst-python
+pkgname=('gst-python' 'gst-python2')
 pkgver=1.6.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Python bindings for GStreamer"
 arch=('i686' 'x86_64')
 license=('LGPL')
 url="http://gstreamer.freedesktop.org/"
-depends=('python-gobject' 'gst-plugins-base')
-makedepends=('pkg-config')
+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() {
+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
+}



More information about the arch-commits mailing list