21 lines
670 B
Plaintext
21 lines
670 B
Plaintext
# Description: Python bindings for GLib/GObject/GIO/GTK+/GStreamer
|
|
# URL: https://wiki.gnome.org/Projects/PyGObject
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: gobject-introspection python-cairo
|
|
|
|
name=python-gobject
|
|
version=3.34.0
|
|
release=1
|
|
source=(https://ftp.gnome.org/pub/GNOME/sources/pygobject/${version::4}/pygobject-$version.tar.xz)
|
|
|
|
build() {
|
|
meson pygobject-$version build --prefix /usr -D python=/usr/bin/python
|
|
ninja -C build -j ${JOBS-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
/usr/bin/python -m compileall -d /usr/lib $PKG/usr/lib
|
|
/usr/bin/python -O -m compileall -d /usr/lib $PKG/usr/lib
|
|
|
|
rm -r $PKG/usr/{include,lib/pkgconfig}
|
|
}
|