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

# source: james
TARBALL=ted-$PKGVER.src.tar.gz
MD5SUM=4199df0deb82a90450135ec3f2b7d915
SRC_URL=http://ftp.nluug.nl/pub/editors/ted/$TARBALL
BUNDLE=

SLACKREQ='gtk2'
SLACKDESC="ted: ted $PKGVER (Wordprocessor)  
ted:  
ted: Ted is a small and lightweight word processor running on the Unix/Linux 
ted: desktop. It uses MS RTF as its document format. RTF files from Ted are 
ted: fully compatible with MS-Word. Ted can also export its output as 
ted: PostScript and PDF files; making it useful as simple document converter.  
ted: 
ted: This package includes documentation and en-US dictionary.
ted: 
ted: https://nllgg.nl/Ted/
ted:
"
SLACKSUG='ghostscript' # needed for PDF save

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	# Note: no CONFFLAGS
	cd /tmp/Ted*	
	make $MAKEFLAGS && make install &&
	pkg_build_slackdesc &&

	# converter scripts
	install -m755 /tmp/pkg/rtf*.sh /usr/bin
}
