Browse Source

[trunk] -> [staging] 'pygobject-3.40.1-2' add

master
Dudemanguy 2 months ago
parent
commit
1367114bc5
Signed by: Dudemanguy GPG Key ID: 4003D2EF625D6492
  1. 4
      pygobject/trunk/PKGBUILD
  2. 48
      pygobject/x86_64/staging/PKGBUILD

4
pygobject/trunk/PKGBUILD

@ -4,7 +4,7 @@
pkgbase=pygobject
pkgname=(python-gobject)
pkgver=3.40.1
pkgrel=1
pkgrel=2
pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
url="https://wiki.gnome.org/Projects/PyGObject"
arch=(x86_64)
@ -30,7 +30,7 @@ prepare() {
}
build() {
arch-meson pygobject build
artix-meson pygobject build
meson compile -C build
}

48
pygobject/x86_64/staging/PKGBUILD

@ -0,0 +1,48 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
pkgbase=pygobject
pkgname=(python-gobject)
pkgver=3.40.1
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 python)
makedepends=(python-cairo gobject-introspection git meson)
checkdepends=(python-pytest gtk3 xorg-server-xvfb)
optdepends=('cairo: Cairo bindings')
provides=("pygobject-devel=$pkgver")
conflicts=(pygobject-devel)
replaces=('pygobject-devel<=3.36.1-1')
_commit=8f0b2bbea727280b055317bb401213c5156af318 # tags/3.40.1^0
source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd pygobject
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd pygobject
}
build() {
artix-meson pygobject build
meson compile -C build
}
check() {
xvfb-run -s '-screen 0 1920x1080x24 -nolisten local' \
meson test -C build --print-errorlogs
}
package_python-gobject() {
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"
}
# vim:set sw=2 et:
Loading…
Cancel
Save