### this file is sourced not run
PKGVER=1.74.0
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 11.3
TARBALL=gobject-introspection-$PKGVER.tar.xz
MD5SUM=ed4e290c5ca8737a62c9a7f5347ae10d
SRC_URL=https://download.gnome.org/sources/gobject-introspection/1.74/$TARBALL
BUNDLE=

SLACKREQ='glib'
SLACKDESC="gobject-introspection: gobject-introspection $PKGVER (Object Introspection)  
gobject-introspection:  
gobject-introspection: The GObject Introspection is used to describe the 
gobject-introspection: program APIs and collect them in a uniform, machine 
gobject-introspection: readable format. These are used in high-level language 
gobject-introspection: bindings, and also in GNOME desktop.  
gobject-introspection: 
gobject-introspection: 
gobject-introspection: 
gobject-introspection: 
gobject-introspection: 
"

### default pkg_download
### default pkg_prepare
### defaulg pkg_package
### build
pkg_build() {
	# multilib
	cd /tmp/gobject-* &&
	sed -i "s/gir-1.0/&-64/" \
		tools/g-ir-tool-template.in \
		meson.build \
		giscanner/transformer.py \
		docs/meson.build \
	&&

	pkg_build_meson &&
	pkg_build_slackdesc &&

	# compile python bytecodes
	for p in g-ir-compiler g-ir-generate g-ir-scanner; do
		/usr/bin/$p 2> /dev/null
		true
	done &&
	
	# multilib
	mv -v /usr/bin/g-ir-compiler{,-64} &&
	mv -v /usr/bin/g-ir-generate{,-64} &&
	mv -v /usr/bin/g-ir-scanner{,-64}  &&
	ln -sv multiarch_wrapper /usr/bin/g-ir-compiler &&
	ln -sv multiarch_wrapper /usr/bin/g-ir-generate &&
	ln -sv multiarch_wrapper /usr/bin/g-ir-scanner  &&

	true
}
