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

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

# vala build-only
SLACKREQ='gtk3 libgit2 libvte_gtk3' # 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: geanypy, geniuspaste, multiterm, markdown, webhelper,
geany-plugins: updatechecker and spellcheck.
geany-plugins:
geany-plugins: http://plugins.geany.org
geany-plugins:
geany-plugins:
geany-plugins:
geany-plugins:
'

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

	# upstream
	#patch -Np1 -i ../pkg/libgit2-1.4.patch && # only needed for 1.38

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

	true
}

### 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
	--enable-geanypy=auto
	--enable-geniuspaste=auto
	--enable-multiterm=auto
	--enable-updatechecker=auto
	--disable-spellcheck
	"
	# ^ spellcheck is already in base, installed via a separate pkg

	pkg_build_autoconf &&
	pkg_build_slackdesc
}
# vim: ft=sh:

