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

# source: BLFS 11.3
TARBALL=pth-$PKGVER.tar.gz
MD5SUM=9cb4a25331a4c4db866a31cbe507c793
SRC_URL=https://ftp.gnu.org/gnu/pth/$TARBALL
BUNDLE=

SLACKREQ='libnsl'
SLACKDESC="libpth: libpth $PKGVER (GNU Portable threads library)
libpth: 
libpth: The Pth package contains a very portable POSIX/ANSI-C based library 
libpth: for Unix platforms which provides non-preemptive priority-based 
libpth: scheduling for multiple threads of execution (multithreading) inside 
libpth: event-driven applications. All threads run in the same address space 
libpth: of the server application, but each thread has its own individual 
libpth: program-counter, run-time stack, signal mask and errno variable.
libpth: 
libpth: 
libpth:
"

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

	# BLFS patch: fixes race condition in Makefile, enable parallel build
	sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in &&

	## BLFS WARNING:
	## Don't add the --enable-pthread parameter to the configure command
	## else you will overwrite the pthread library and interface header
	## installed by the Glibc package in LFS. 

	CONFFLAGS="$CONFFLAGS --disable-static --mandir=/usr/share/man" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}
