[arch-commits] Commit in pygobject/repos (4 files)

Jan de Groot jgc at archlinux.org
Thu Mar 17 15:26:29 UTC 2016


    Date: Thursday, March 17, 2016 @ 16:26:29
  Author: jgc
Revision: 261998

archrelease: copy trunk to gnome-unstable-i686, gnome-unstable-x86_64

Added:
  pygobject/repos/gnome-unstable-i686/
  pygobject/repos/gnome-unstable-i686/PKGBUILD
    (from rev 261997, pygobject/trunk/PKGBUILD)
  pygobject/repos/gnome-unstable-x86_64/
  pygobject/repos/gnome-unstable-x86_64/PKGBUILD
    (from rev 261997, pygobject/trunk/PKGBUILD)

--------------------------------+
 gnome-unstable-i686/PKGBUILD   |   58 +++++++++++++++++++++++++++++++++++++++
 gnome-unstable-x86_64/PKGBUILD |   58 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 116 insertions(+)

Copied: pygobject/repos/gnome-unstable-i686/PKGBUILD (from rev 261997, pygobject/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-i686/PKGBUILD	                        (rev 0)
+++ gnome-unstable-i686/PKGBUILD	2016-03-17 15:26:29 UTC (rev 261998)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.19.92
+pkgrel=1
+arch=(i686 x86_64)
+url="https://live.gnome.org/PyGObject"
+license=(LGPL)
+makedepends=(python python2 python-cairo python2-cairo gobject-introspection)
+source=(https://download.gnome.org/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz)
+sha256sums=('59ed22d59017727a4a31ae00afaec231350d8fb67a518f08f983ecf62b006191')
+
+prepare() {
+  mkdir build-py2 build-py3 devel
+  cd ${pkgbase}-${pkgver}
+}
+
+build() {
+  cd build-py2
+  ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python2
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+
+  cd ../build-py3
+  ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package_python-gobject() {
+  pkgdesc="Python 3 bindings for GObject"
+  depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python' 'cairo')
+
+  cd build-py3
+  make DESTDIR="$pkgdir" install
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_python2-gobject() {
+  pkgdesc="Python 2 bindings for GObject"
+  depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python2' 'cairo')
+
+  cd build-py2
+  make DESTDIR="$pkgdir" install
+  mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+  python2 -m compileall "$pkgdir"//usr/lib/python2.7/site-packages/gi
+}
+
+package_pygobject-devel() {
+  pkgdesc="Development files for the pygobject bindings"
+
+  cd "devel"
+  mkdir -p "$pkgdir"/usr/{include,lib}
+  mv include "$pkgdir/usr/"
+  mv pkgconfig "$pkgdir/usr/lib/"
+}

Copied: pygobject/repos/gnome-unstable-x86_64/PKGBUILD (from rev 261997, pygobject/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD	2016-03-17 15:26:29 UTC (rev 261998)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.19.92
+pkgrel=1
+arch=(i686 x86_64)
+url="https://live.gnome.org/PyGObject"
+license=(LGPL)
+makedepends=(python python2 python-cairo python2-cairo gobject-introspection)
+source=(https://download.gnome.org/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz)
+sha256sums=('59ed22d59017727a4a31ae00afaec231350d8fb67a518f08f983ecf62b006191')
+
+prepare() {
+  mkdir build-py2 build-py3 devel
+  cd ${pkgbase}-${pkgver}
+}
+
+build() {
+  cd build-py2
+  ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python2
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+
+  cd ../build-py3
+  ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package_python-gobject() {
+  pkgdesc="Python 3 bindings for GObject"
+  depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python' 'cairo')
+
+  cd build-py3
+  make DESTDIR="$pkgdir" install
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_python2-gobject() {
+  pkgdesc="Python 2 bindings for GObject"
+  depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python2' 'cairo')
+
+  cd build-py2
+  make DESTDIR="$pkgdir" install
+  mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+  python2 -m compileall "$pkgdir"//usr/lib/python2.7/site-packages/gi
+}
+
+package_pygobject-devel() {
+  pkgdesc="Development files for the pygobject bindings"
+
+  cd "devel"
+  mkdir -p "$pkgdir"/usr/{include,lib}
+  mv include "$pkgdir/usr/"
+  mv pkgconfig "$pkgdir/usr/lib/"
+}



More information about the arch-commits mailing list