[arch-commits] Commit in pygobject/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jul 19 07:12:20 UTC 2018
Date: Thursday, July 19, 2018 @ 07:12:20
Author: felixonmars
Revision: 329018
archrelease: copy trunk to staging-x86_64
Added:
pygobject/repos/staging-x86_64/
pygobject/repos/staging-x86_64/PKGBUILD
(from rev 329017, pygobject/trunk/PKGBUILD)
----------+
PKGBUILD | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
Copied: pygobject/repos/staging-x86_64/PKGBUILD (from rev 329017, pygobject/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-07-19 07:12:20 UTC (rev 329018)
@@ -0,0 +1,68 @@
+# $Id$
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.28.3
+pkgrel=2
+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=8c84ef95c9a76de9189feedfebc8963db29d6bf0 # tags/3.28.3^0
+source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#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