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

Jan Steffens heftig at archlinux.org
Thu Mar 30 20:02:22 UTC 2017


    Date: Thursday, March 30, 2017 @ 20:02:21
  Author: heftig
Revision: 291880

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 291879, pygobject/trunk/PKGBUILD)
  pygobject/repos/gnome-unstable-x86_64/
  pygobject/repos/gnome-unstable-x86_64/PKGBUILD
    (from rev 291879, pygobject/trunk/PKGBUILD)

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

Copied: pygobject/repos/gnome-unstable-i686/PKGBUILD (from rev 291879, pygobject/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-i686/PKGBUILD	                        (rev 0)
+++ gnome-unstable-i686/PKGBUILD	2017-03-30 20:02:21 UTC (rev 291880)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.24.0
+pkgrel=1
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject"
+arch=(i686 x86_64)
+license=(LGPL)
+depends=(gobject-introspection-runtime)
+makedepends=(python{,2}-cairo gobject-introspection git gnome-common)
+optdepends=('cairo: Cairo bindings')
+_commit=9d76190bc7a256764b1af5ec4bd05ce4a7b6e1d2  # tags/3.24.0^0
+source=("git+https://git.gnome.org/browse/pygobject#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  mkdir build-py{2,3} devel
+  cd $pkgbase
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+_build() (
+  cd build-py$1
+  ../$pkgbase/configure --prefix=/usr --with-python=/usr/bin/python$1
+  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+)
+
+build() {
+  _build 2
+  _build 3
+}
+
+package_python-gobject() {
+  depends=("pygobject-devel=$pkgver" python)
+
+  cd build-py3
+  make DESTDIR="$pkgdir" install
+  mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_python2-gobject() {
+  pkgdesc="${pkgdesc/Python/Python2}"
+  depends=("pygobject-devel=$pkgver" python2)
+
+  cd build-py2
+  make DESTDIR="$pkgdir" install
+  python2 -m compileall "$pkgdir"/usr/lib/python2.7/site-packages/gi
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_pygobject-devel() {
+  pkgdesc="Common development files for pygobject"
+  optdepends=()
+
+  cd devel
+  mkdir -p "$pkgdir/usr/lib"
+  mv include "$pkgdir/usr/"
+  mv pkgconfig "$pkgdir/usr/lib/"
+}

Copied: pygobject/repos/gnome-unstable-x86_64/PKGBUILD (from rev 291879, pygobject/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD	2017-03-30 20:02:21 UTC (rev 291880)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.24.0
+pkgrel=1
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject"
+arch=(i686 x86_64)
+license=(LGPL)
+depends=(gobject-introspection-runtime)
+makedepends=(python{,2}-cairo gobject-introspection git gnome-common)
+optdepends=('cairo: Cairo bindings')
+_commit=9d76190bc7a256764b1af5ec4bd05ce4a7b6e1d2  # tags/3.24.0^0
+source=("git+https://git.gnome.org/browse/pygobject#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  mkdir build-py{2,3} devel
+  cd $pkgbase
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+_build() (
+  cd build-py$1
+  ../$pkgbase/configure --prefix=/usr --with-python=/usr/bin/python$1
+  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+)
+
+build() {
+  _build 2
+  _build 3
+}
+
+package_python-gobject() {
+  depends=("pygobject-devel=$pkgver" python)
+
+  cd build-py3
+  make DESTDIR="$pkgdir" install
+  mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_python2-gobject() {
+  pkgdesc="${pkgdesc/Python/Python2}"
+  depends=("pygobject-devel=$pkgver" python2)
+
+  cd build-py2
+  make DESTDIR="$pkgdir" install
+  python2 -m compileall "$pkgdir"/usr/lib/python2.7/site-packages/gi
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_pygobject-devel() {
+  pkgdesc="Common development files for pygobject"
+  optdepends=()
+
+  cd devel
+  mkdir -p "$pkgdir/usr/lib"
+  mv include "$pkgdir/usr/"
+  mv pkgconfig "$pkgdir/usr/lib/"
+}



More information about the arch-commits mailing list