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

# source: BLFS 8.2 updated to LFS 11.3
TARBALL=meson-$PKGVER.tar.gz
MD5SUM=009b78125467cd9ee4d467175a5c12e1
BUNDLE=fatdog-base-11.3.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$BUNDLE
#SRC_URL=https://github.com/mesonbuild/meson/releases/download/$PKGVER/$TARBALL

SLACKREQ='python3 ninja'
SLACKDESC="python3-meson: python3-meson $PKGVER (Build system)
python3-meson: 
python3-meson: Meson is an open source build system meant to be both extremely fast, 
python3-meson: and, even more importantly, as user friendly as possible. The main 
python3-meson: design point of Meson is that every moment a developer spends writing 
python3-meson: or debugging build definitions is a second wasted. So is every second 
python3-meson: spent waiting for the build system to actually start compiling code.
python3-meson: 
python3-meson: http://mesonbuild.com/
python3-meson: 
python3-meson: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/meson*

	# LFS 11.3 build
	# compile the stuff
	#pip3 wheel -w dist --no-build-isolation --no-deps $PWD
	# then install it
	#pip3 install --no-index --find-links dist meson
	#install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson
	#install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson

	# we use the traditional one
	python3 setup.py build &&
	python3 setup.py install \
		--single-version-externally-managed \
		--root / &&
	pkg_build_slackdesc

}


