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

Jan Steffens heftig at archlinux.org
Sat Sep 19 20:11:31 UTC 2015


    Date: Saturday, September 19, 2015 @ 22:11:31
  Author: heftig
Revision: 246691

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  pygobject2/repos/staging-i686/
  pygobject2/repos/staging-i686/PKGBUILD
    (from rev 246690, pygobject2/trunk/PKGBUILD)
  pygobject2/repos/staging-x86_64/
  pygobject2/repos/staging-x86_64/PKGBUILD
    (from rev 246690, pygobject2/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   74 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   74 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 148 insertions(+)

Copied: pygobject2/repos/staging-i686/PKGBUILD (from rev 246690, pygobject2/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-09-19 20:11:31 UTC (rev 246691)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=pygobject2
+pkgname=(python-gobject2 python2-gobject2 pygobject2-devel)
+pkgver=2.28.6
+pkgrel=12
+arch=(i686 x86_64)
+url="http://www.pygtk.org/"
+license=(LGPL)
+makedepends=(python python2 git)
+
+# pygobject-2-28 branch: https://git.gnome.org/browse/pygobject/log/?h=pygobject-2-28
+source=('git://git.gnome.org/pygobject#commit=9456ba7')
+sha256sums=('SKIP')
+
+prepare() {
+  cd pygobject
+  autoreconf -fi
+
+  cp -a . ../python2-build
+
+  find -O3 ../python2-build \
+    \( -name '*.py' -o -name '*.py.in' \) \
+    -exec sed -i '1s|python$|&2|' {} +
+}
+
+build() {
+  cd python2-build
+  ./configure --prefix=/usr --disable-introspection \
+    PYTHON=/usr/bin/python2
+  make
+
+  cd ../pygobject
+  ./configure --prefix=/usr --disable-introspection
+  make
+}
+
+package_python-gobject2() {
+  pkgdesc="Python 3 bindings for GObject2"
+  depends=(glib2 pygobject2-devel python)
+  replaces=(py3gobject)
+  provides=("py3gobject=$pkgver")
+
+  cd pygobject
+  make DESTDIR="$pkgdir" install
+
+  # Delete devel stuff
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig,share/{gtk-doc,pygobject/xsl}}
+}
+
+package_python2-gobject2() {
+  pkgdesc="Python 2 bindings for GObject2"
+  depends=(glib2 pygobject2-devel python2)
+  replaces=(pygobject)
+  provides=("pygobject=$pkgver")
+
+  cd python2-build
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/share/gtk-doc
+
+  # Split devel stuff
+  cd ..
+  mkdir -p devel/usr/{lib,share/pygobject}
+  mv {"$pkgdir",devel}/usr/include
+  mv {"$pkgdir",devel}/usr/lib/pkgconfig
+  mv {"$pkgdir",devel}/usr/share/pygobject/xsl
+}
+
+package_pygobject2-devel() {
+  pkgdesc="Development files for the pygobject bindings"
+  mv devel/* "$pkgdir"
+}

Copied: pygobject2/repos/staging-x86_64/PKGBUILD (from rev 246690, pygobject2/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-09-19 20:11:31 UTC (rev 246691)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=pygobject2
+pkgname=(python-gobject2 python2-gobject2 pygobject2-devel)
+pkgver=2.28.6
+pkgrel=12
+arch=(i686 x86_64)
+url="http://www.pygtk.org/"
+license=(LGPL)
+makedepends=(python python2 git)
+
+# pygobject-2-28 branch: https://git.gnome.org/browse/pygobject/log/?h=pygobject-2-28
+source=('git://git.gnome.org/pygobject#commit=9456ba7')
+sha256sums=('SKIP')
+
+prepare() {
+  cd pygobject
+  autoreconf -fi
+
+  cp -a . ../python2-build
+
+  find -O3 ../python2-build \
+    \( -name '*.py' -o -name '*.py.in' \) \
+    -exec sed -i '1s|python$|&2|' {} +
+}
+
+build() {
+  cd python2-build
+  ./configure --prefix=/usr --disable-introspection \
+    PYTHON=/usr/bin/python2
+  make
+
+  cd ../pygobject
+  ./configure --prefix=/usr --disable-introspection
+  make
+}
+
+package_python-gobject2() {
+  pkgdesc="Python 3 bindings for GObject2"
+  depends=(glib2 pygobject2-devel python)
+  replaces=(py3gobject)
+  provides=("py3gobject=$pkgver")
+
+  cd pygobject
+  make DESTDIR="$pkgdir" install
+
+  # Delete devel stuff
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig,share/{gtk-doc,pygobject/xsl}}
+}
+
+package_python2-gobject2() {
+  pkgdesc="Python 2 bindings for GObject2"
+  depends=(glib2 pygobject2-devel python2)
+  replaces=(pygobject)
+  provides=("pygobject=$pkgver")
+
+  cd python2-build
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/share/gtk-doc
+
+  # Split devel stuff
+  cd ..
+  mkdir -p devel/usr/{lib,share/pygobject}
+  mv {"$pkgdir",devel}/usr/include
+  mv {"$pkgdir",devel}/usr/lib/pkgconfig
+  mv {"$pkgdir",devel}/usr/share/pygobject/xsl
+}
+
+package_pygobject2-devel() {
+  pkgdesc="Development files for the pygobject bindings"
+  mv devel/* "$pkgdir"
+}



More information about the arch-commits mailing list