50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
# Template file for 'geany-plugins'
|
|
pkgname=geany-plugins
|
|
version=1.38.0
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--enable-all-plugins --disable-devhelp
|
|
--disable-webhelper --disable-debugger --disable-geanypy --disable-multiterm"
|
|
hostmakedepends="automake gettext-devel intltool libtool pkg-config vala
|
|
glib-devel"
|
|
makedepends="geany-devel lua51-devel ctpl-devel zlib-devel
|
|
gpgme-devel enchant2-devel libgit2-devel libsoup-devel
|
|
gtkspell-devel webkit2gtk-devel vte3-devel"
|
|
short_desc="Geany IDE plugins"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://plugins.geany.org"
|
|
changelog="https://raw.githubusercontent.com/geany/geany-plugins/master/NEWS"
|
|
distfiles="https://github.com/geany/${pkgname}/archive/${version}.tar.gz"
|
|
checksum=86d2fe05290136d020b0d22f849a1aaa74b83cb49b767ae2dc19aaedcdf3d469
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
pre_build() {
|
|
# XXX: Compile 'leg' for host arch.
|
|
make CC=cc CFLAGS="-fPIE" -C "markdown/peg-markdown/peg-0.1.9"
|
|
}
|
|
|
|
# These plugins require extra dependencies
|
|
geany-plugins-extra_package() {
|
|
short_desc+=" - extra plugins"
|
|
pkg_install() {
|
|
for p in geanygendoc geanylua geanypg geniuspaste \
|
|
git-changebar pretty-printer spellcheck updatechecker; do
|
|
if [ -x ${DESTDIR}/usr/lib/geany/${p}.so ]; then
|
|
vmove usr/lib/geany/${p}.so
|
|
fi
|
|
if [ -x ${DESTDIR}/usr/share/geany-plugins/${p} ]; then
|
|
vmove usr/share/geany-plugins/${p}
|
|
fi
|
|
if [ -x ${DESTDIR}/usr/share/doc/geany-plugins/${p} ]; then
|
|
vmove usr/share/doc/geany-plugins/${p}
|
|
fi
|
|
done
|
|
|
|
vmove usr/lib/geany-plugins/geanylua
|
|
}
|
|
}
|