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

# source: james
# release tarball
PKGVER=1.4.0
TARBALL=FeatherPad-$PKGVER.tar.xz
MD5SUM=c0adc9c1b480e7bb7c798694302b71d4
SRC_URL=https://github.com/tsujan/FeatherPad/releases/download/V$PKGVER/$TARBALL
#BUNDLE=

# git-master tarball
#PKGVER=0.16.2020.12
#MD5SUM=779a6e6f0a7f807d7703481ff1f6b7d8
#hash=59b29a9b0709d47c37d7a673885f3875726292dd # last version that supports Qt 5.11
#hash7=${hash#???????}; hash7=${hash%$hash7}
#TARBALL=FeatherPad-$PKGVER.tar.gz
#SRC_URL=https://github.com/tsujan/FeatherPad/archive/$hash.tar.gz

SLACKREQ='qt5-common hunspell'
SLACKDESC="featherpad: featherpad $PKGVER (Lightweight text editor)
featherpad: 
featherpad: FeatherPad is a lightweight Qt plain-text editor for Linux.
featherpad: 
featherpad: https://github.com/tsujan/FeatherPad
featherpad: 
featherpad: 
featherpad: 
featherpad: 
featherpad: 
featherpad:
"

### 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" 

	pkg_build_cmake &&
	pkg_build_slackdesc
}


