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

# source: james
TARBALL=lyx-$PKGVER.tar.xz
MD5SUM=60616e3e0e6dd8b63fe1c13853c86330
SRC_URL=https://ftp.lip6.fr/pub/lyx/stable/2.3.x/$TARBALL
BUNDLE=

SLACKREQ='qt5-common python' # and texlive SFS
SLACKDESC="lyx: lyx $PKGVER (Document Processor)
lyx: 
lyx: LyX is a document processor that encourages an approach to writing 
lyx: structured documents. LyX combines the power and flexibility of 
lyx: TeX/LaTeX with the ease of use of a graphical interface. It has
lyx: built-in equation editor, support for automatic reference list and  
lyx: indexing, among others.
lyx: Lyx requires TexLive to run, which must be downloaded separately
lyx: from http://www.tug.org/texlive/
lyx: Run Tools->Reconfigure when you launch Lyx for the first time.
lyx: https://www.lyx.org/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {

	# qt5	
	export PATH="$PATH:/opt/qt5/bin"
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/qt5/$LIBDIR"
	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_PATH="/opt/qt5/bin"
	export QT5_LD_LIBRARY_PATH="/opt/qt5/$LIBDIR"
	export QT5_PKG_CONFIG_PATH="/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_CPLUS_INCLUDE_PATH="/opt/qt5/include" 

	CONFFLAGS="$CONFFLAGS --enable-qt5"
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


