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

# source: post BLFS 8.2 2018-08-02
TARBALL=newt-$PKGVER.tar.gz
MD5SUM=70b288f821234593a8e7920e435b259b
SRC_URL=https://releases.pagure.org/newt/$TARBALL
BUNDLE=

SLACKREQ='libslang libpopt'
SLACKDESC="libnewt: libnewt $PKGVER (Text-mode programming library)  
libnewt:  
libnewt: Newt is a programming library for color text mode, widget based user 
libnewt: interfaces. Newt can be used to add stacked windows, entry widgets, 
libnewt: checkboxes, radio buttons, labels, plain text fields, scrollbars, 
libnewt: etc., to text mode user interfaces. Newt is based on the S-Lang 
libnewt: library.  
libnewt: 
libnewt: 
libnewt: 
libnewt: 
"

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

	# BLFS - disable static lib	
	sed -e 's/^LIBNEWT =/#&/' \
		-e '/install -m 644 $(LIBNEWT)/ s/^/#/' \
		-e 's/$(LIBNEWT)/$(LIBNEWTSONAME)/g' \
		-i Makefile.in                           &&
	
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


