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

Jan Steffens heftig at archlinux.org
Thu Mar 8 20:12:41 UTC 2018


    Date: Thursday, March 8, 2018 @ 20:12:39
  Author: heftig
Revision: 318279

archrelease: copy trunk to gnome-unstable-x86_64

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

----------+
 PKGBUILD |   68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

Copied: pygobject/repos/gnome-unstable-x86_64/PKGBUILD (from rev 318278, pygobject/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD	2018-03-08 20:12:39 UTC (rev 318279)
@@ -0,0 +1,68 @@
+# $Id$
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.27.5
+pkgrel=1
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject"
+arch=(x86_64)
+license=(LGPL)
+depends=(gobject-introspection-runtime)
+makedepends=(python{,2}-cairo gobject-introspection git autoconf-archive)
+optdepends=('cairo: Cairo bindings')
+_commit=7e571ea62074243eef36110c240e192e5682a687  # tags/3.27.5^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