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

# source: kirk
TARBALL=geany-plugins-$PKGVER.tar.bz2
MD5SUM=91fb4634953702f914d9105da7048a33
SRC_URL=http://plugins.geany.org/geany-plugins/$TARBALL
BUNDLE=

# build only depends on vala_no_graphviz
SLACKREQ='gtk2 geany' # this list isn't accurate - I'm too lazy to find the real deps
SLACKDESC='geany-plugins: geany-plugins '$PKGVER' (all plugins)
geany-plugins:
geany-plugins: This is the full set of plugins excluding devhelp, geanygendoc, geanylua,
geany-plugins: markdown, webhelper and spellcheck.
geany-plugins:
geany-plugins:
geany-plugins:
geany-plugins:
geany-plugins:
geany-plugins:
geany-plugins:
'

### default pkg_download
### pkg_prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/geany-plugins* &&

	# Build helper - Extract dependency info
	awk '
	BEGIN {print "Auto-generated by pkgbuild\n"}
	/^Requirements$/ {print FILENAME" "$0; getline; print; f=1; next}
	f && /^----|^====/ {f=0;print""; next}
	f {print}
	' */README > Required.md &&

	patch -Np1 -i ../pkg/geany-plugins-1.36-libgit2-preprocessor-compat-9497d82.patch
}

### default pkg_package
### build
pkg_build() {
	# Selectively disable some plugins (mostly the ones that depend on webkit)
	CONFFLAGS="$CONFFLAGS --enable-all-plugins
	--enable-devhelp=auto
	--enable-geanygendoc=auto
	--enable-geanylua=auto
	--enable-markdown=auto
	--enable-webhelper=auto
	--disable-spellcheck
	"
	# ^ spellcheck is already in base, installed via a separate pkg
	
	pkg_build_autoconf && pkg_build_slackdesc
}
# vim: ft=sh:

