[arch-commits] Commit in pygobject/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sat Sep 26 21:07:15 UTC 2020


    Date: Saturday, September 26, 2020 @ 21:07:14
  Author: heftig
Revision: 396627

3.38.0-1

Modified:
  pygobject/trunk/PKGBUILD

----------+
 PKGBUILD |   75 +++++++++++++++----------------------------------------------
 1 file changed, 19 insertions(+), 56 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-26 21:04:30 UTC (rev 396626)
+++ PKGBUILD	2020-09-26 21:07:14 UTC (rev 396627)
@@ -1,85 +1,48 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 
 pkgbase=pygobject
-pkgname=(python-gobject python2-gobject pygobject-devel)
-pkgver=3.36.1
+pkgname=(python-gobject)
+pkgver=3.38.0
 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 meson)
-checkdepends=(python{,2}-pytest gtk3 xorg-server-xvfb)
+depends=(gobject-introspection-runtime python)
+makedepends=(python-cairo gobject-introspection git meson)
+checkdepends=(python-pytest gtk3 xorg-server-xvfb)
 optdepends=('cairo: Cairo bindings')
-_commit=5c6bee1c2a0d08cf367aa61784b5b967128e68b2  # tags/3.36.1^0
+provides=("pygobject-devel=$pkgver")
+conflicts=(pygobject-devel)
+replaces=('pygobject-devel<=3.36.1-1')
+_commit=63825d8eb0acbaf516fcd5064a891f31534dc4e5  # tags/3.38.0^0
 source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit")
 sha256sums=('SKIP')
 
 pkgver() {
-  cd $pkgbase
+  cd pygobject
   git describe --tags | sed 's/-/+/g'
 }
 
 prepare() {
-  cd $pkgbase
-  # tests: don't use strict mode for xfail with the excepthook plugin
-  git cherry-pick -n dae0500166068d78150855bdef94f0bee18b31dd
+  cd pygobject
 }
 
-_build() {
-  arch-meson $pkgbase build-$1 -D python=/usr/bin/$1
-  ninja -C build-$1
-}
-
-_check() {
-  xvfb-run meson test -C build-$1 --print-errorlogs
-}
-
-_package() {
-  DESTDIR="$pkgdir" meson install -C build-$1
-  $1 -m compileall -d /usr/lib "$pkgdir/usr/lib"
-  $1 -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
-}
-
 build() {
-  _build python
-  _build python2
+  arch-meson pygobject build
+  meson compile -C build
 }
 
 check() {
-  _check python
-  _check python2
+  xvfb-run -s '-screen 0 1920x1080x24 -nolisten local' \
+    meson test -C build --print-errorlogs
 }
 
 package_python-gobject() {
-  depends=("pygobject-devel=$pkgver" python)
-
-  _package python
-
-### Split -devel
-  mkdir -p "$srcdir/devel"
-  mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+  DESTDIR="$pkgdir" meson install -C build
+  python -m compileall -d /usr/lib "$pkgdir/usr/lib"
+  python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
 }
 
-package_python2-gobject() {
-  pkgdesc="${pkgdesc/Python/Python2}"
-  depends=("pygobject-devel=$pkgver" python2)
-
-  _package python2
-
-### Remove -devel
-  rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
-}
-
-package_pygobject-devel() {
-  pkgdesc="Common development files for pygobject"
-  optdepends=()
-
-  mkdir -p "$pkgdir/usr/lib"
-  mv devel/include "$pkgdir/usr"
-  mv devel/pkgconfig "$pkgdir/usr/lib"
-}
-
 # vim:set sw=2 et:



More information about the arch-commits mailing list