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

# source: james 
TARBALL=QScintilla-$PKGVER.tar.gz
MD5SUM=d750d9143b0697df2e4662cea3efd20d
SRC_URL=https://www.riverbankcomputing.com/static/Downloads/QScintilla/$PKGVER/$TARBALL
        
BUNDLE=

SLACKREQ='qt5-common' # some openGL libs: mesa or proprietary
SLACKDESC="libqscintilla2: libqscintilla2 $PKGVER (QT Editor Widget)  
libqscintilla2:  
libqscintilla2: QScintilla is a port to Qt of Neil Hodgson Scintilla C++ 
libqscintilla2: editor control. It includes support for syntax styling, error 
libqscintilla2: indicators, code completion and call tips. The selection 
libqscintilla2: margin can contain markers like those used in debuggers to 
libqscintilla2: indicate breakpoints and the current line. Styling choices are 
libqscintilla2: more open than with many editors, allowing the use of 
libqscintilla2: proportional fonts, bold and italics, multiple foreground and 
libqscintilla2: background colours and multiple fonts.  
libqscintilla2: http://www.riverbankcomputing.com/software/qscintilla/intro
"

### 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" 
	export LDFLAGS="-L/opt/qt5/$LIBDIR"

	cd /tmp/QScintilla*/Qt4Qt5
	qmake qscintilla.pro &&
	make $MAKEFLAGS && make install &&
	
	cd ../designer-Qt4Qt5 &&
    qmake designer.pro &&
    make $MAKEFLAGS && make install	&&
	
	pkg_build_slackdesc
}


