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

# source: james
TARBALL=joe-$PKGVER.tar.gz
MD5SUM=9017484e6116830d846678b625ea5c43
SRC_URL=http://downloads.sourceforge.net/joe-editor/$TARBALL
BUNDLE=

SLACKREQ='libncurses'
SLACKDESC="joe: joe $PKGVER (Terminal text editor)
joe: 
joe: JOE is a full featured terminal-based screen editor. The basic 
joe: editing keys are the same as in WordStar. It supports UTF-8, syntax 
joe: highlighting, hex-editing, mouse support, multiple-windows, unlimited 
joe: undo/redo, and so much more.
joe: 
joe: https://joe-editor.sourceforge.io/
joe: 
joe: 
joe: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package

### build
pkg_build() {
	export UNICODE_VERSION=10.0.0 # default is 9.0.0
	
	cd /tmp/joe* &&
	./configure $CONFFLAGS &&
	cd joe/util &&
	make &&
	cd unicode-${UNICODE_VERSION//./-} &&
	../uniproc Blocks.txt UnicodeData.txt CaseFolding.txt EastAsianWidth.txt  > ../../unicat-$UNICODE_VERSION.c &&
	cd ../../.. &&
	make $MAKEFLAGS &&
	make $MAKEFLAGS install &&
	pkg_build_slackdesc
}


