opt/python3-gobject/Pkgfile

26 lines
748 B
Plaintext
Raw Normal View History

2018-09-27 15:56:29 +02:00
# Description: Python bindings for GLib/GObject/GIO/GTK+/GStreamer
# URL: https://wiki.gnome.org/Projects/PyGObject
2023-08-19 11:23:17 +02:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
2018-09-27 15:56:29 +02:00
# Depends on: gobject-introspection python3-cairo
name=python3-gobject
2023-09-11 17:36:20 +02:00
version=3.46.0
release=1
2018-09-27 15:56:29 +02:00
source=(https://ftp.gnome.org/pub/GNOME/sources/pygobject/${version::4}/pygobject-$version.tar.xz)
build() {
2023-08-19 11:23:17 +02:00
meson setup pygobject-$version build \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D python=/usr/bin/python3
meson compile -C build -j ${JOBS-1}
2018-09-27 15:56:29 +02:00
DESTDIR=$PKG meson install -C build
/usr/bin/python3 -m compileall -d /usr/lib $PKG/usr/lib
/usr/bin/python3 -O -m compileall -d /usr/lib $PKG/usr/lib
}