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

# source: BLFS 11.3
TARBALL=docutils-$PKGVER.tar.gz
MD5SUM=0afa992a6e93db892107c3f087d0d9df
SRC_URL=https://downloads.sourceforge.net/docutils/$TARBALL
BUNDLE=

SLACKREQ='python3' 
SLACKDESC="python3-docutils: python3-docutils $PKGVER (Documentation utilities)  
python3-docutils:  
python3-docutils: Docutils is a modular system for processing documentation 
python3-docutils: into useful formats, such as HTML, XML, and LaTeX. For input 
python3-docutils: Docutils supports reStructuredText, an easy-to-read, 
python3-docutils: what-you-see-is-what-you-get plaintext markup syntax.  
python3-docutils: 
python3-docutils: https://sourceforge.net/projects/docutils/
python3-docutils: 
python3-docutils: 
python3-docutils: 
"

### default pkg_download
### defaulg pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/docutils* &&

	#BLFS 11.3 way
	#pip3 wheel -w dist --no-build-isolation --no-deps $PWD

	pkg_build_python3modules &&
	pkg_build_slackdesc &&

	# symlink all binaries
	for f in /usr/bin/rst*.py; do
		ln -svf $(basename $f) /usr/bin/$(basename $f .py)
	done
	
	# symlink commonly used binaries
#	ln -sfv rst2man.py /usr/bin/rst2man &&
#	ln -sfv rst2html.py /usr/bin/rst2html &&	
#	ln -sfv rst2odt.py /usr/bin/rst2odt
}
