#### this file is sourced not run
PKGVER=2023.1
PKGARCH=noarch
PKGBUILD=1

# source: BLFS 11.3
TARBALL=gi-docgen-$PKGVER.tar.gz
MD5SUM=6d6690dad5daa5b155341ab2f49eaa6b
SRC_URL=https://files.pythonhosted.org/packages/source/g/gi-docgen/$TARBALL
BUNDLE=

SLACKREQ='python3-markdown python3-markupsafe python3-pygments python3-jinja python3-typogrify'
SLACKDESC="python3-gi-docgen: python3-gi-docgen $PKGVER (Doc maker for Gobject-based libraries)
python3-gi-docgen: 
python3-gi-docgen: GI-DocGen is a document generator for GObject-based libraries. 
python3-gi-docgen: GObject is the base type system of the GNOME project. GI-Docgen 
python3-gi-docgen: reuses the introspection data generated by GObject-based libraries to 
python3-gi-docgen: generate the API reference of these libraries, as well as other 
python3-gi-docgen: ancillary documentation.
python3-gi-docgen: 
python3-gi-docgen: https://pypi.org/project/gi-docgen/
python3-gi-docgen: 
python3-gi-docgen: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/gi* &&
	patch -Np1 -i ../pkg/girdir-32-64-bit-paths.patch
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/gi*
	python3 setup.py build &&
	python3 setup.py install --optimize=1 \
		--single-version-externally-managed \
		--root / &&
	pkg_build_slackdesc
}


