#Packager for Salix: George Vlahavas # Included in Slint by Didier Spaier pkgname=py3gobject pkgver=3.40.1 _majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"` pkgrel=1slint url=https://live.gnome.org/PyGObject source=("pygobject-3.40.1.tar.xz") docs=("authors" "install" "readme" "copying*" "news") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "py3gobject (GObject bindings for Python 3)" "This archive contains bindings for the GObject, to be used in Python" "version 3.x. It is a fairly complete set of bindings, it's already" "rather useful, and is usable to write moderately complex programs." ) build() { cd $startdir/src/pygobject-$pkgver export CFLAGS="$SLKCFLAGS" export CXXFLAGS="$SLKCFLAGS" mkdir build cd build meson setup --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --with-python=python3 \ .. || exit 1 ninja || exit 1 DESTDIR=$startdir/pkg ninja install || exit 1 }