64 lines
2.1 KiB
Bash
64 lines
2.1 KiB
Bash
# Template file for 'geany-plugins'
|
|
pkgname=geany-plugins
|
|
version=1.33.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--enable-all-plugins"
|
|
hostmakedepends="automake gettext-devel intltool libtool pkg-config vala
|
|
glib-devel python-devel"
|
|
makedepends="geany-devel lua51-devel ctpl-devel libwnck2-devel GConf-devel
|
|
webkitgtk2-devel zlib-devel gpgme-devel enchant-devel pygtk-devel libgit2-devel"
|
|
_short_desc="Geany IDE plugins"
|
|
short_desc="${_short_desc} meta-package"
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="http://plugins.geany.org"
|
|
distfiles="https://github.com/geany/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=e889073b573452c91b4d3d87ce45bd4bb57f63e4cde03dea25b6304c5a89bf55
|
|
|
|
pre_configure() {
|
|
# Force python2.7 (configure seems to find the python3 libs for some reason)
|
|
rm /usr/bin/python
|
|
ln -s python2 /usr/bin/python
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Use cross prefix for python
|
|
sed -e "s;-L\$ac_python_libdir;-L${XBPS_CROSS_BASE}/usr/lib;g" \
|
|
-e "s;PYTHON_CPPFLAGS=\$python_path;PYTHON_CPPFLAGS=-I${XBPS_CROSS_BASE}/usr/include/python2.7;g" -i configure
|
|
else
|
|
sed -e "s;-L\$ac_python_libdir;-L/usr/lib;g" \
|
|
-e "s;PYTHON_CPPFLAGS=\$python_path;PYTHON_CPPFLAGS=-I/usr/include/python2.7;g" -i configure
|
|
fi
|
|
|
|
}
|
|
|
|
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="${_short_desc} - extra plugins"
|
|
pkg_install() {
|
|
for p in devhelp geanygendoc geanylua geanypg geanypy geniuspaste \
|
|
git-changebar markdown pretty-printer spellcheck updatechecker webhelper; 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
|
|
vmove usr/lib/geany/geanypy
|
|
}
|
|
}
|
|
|