aboutsummaryrefslogtreecommitdiffstats
path: root/testing/geany-plugins/APKBUILD
blob: af588d70aab999cdbc64a23cabdcb4e8952b652d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geany-plugins
pkgver=0.20
pkgrel=0
pkgdesc="Plugins for Geany"
url="http://plugins.geany.org/"
arch="all"
license="GPLv3+"
depends=
makedepends="lua-dev geany-dev enchant-dev intltool gtkspell-dev libxml2-dev
	bash"
install=""
subpackages="$pkgname-doc
	$pkgname-addons
	$pkgname-codenav
	$pkgname-geanydoc
	$pkgname-geanyextrasel
	$pkgname-geanygdb
	$pkgname-geanyinsertnum
	$pkgname-geanylatex
	$pkgname-geanylipsum
	$pkgname-geanylua
	$pkgname-geanyprj
	$pkgname-geanysendmail
	$pkgname-geanyvc
	$pkgname-pretty-print:pretty_print
	$pkgname-shiftcolumn
	$pkgname-spellcheck
	$pkgname-treebrowser
	"

source="http://plugins.geany.org/geany-plugins/geany-plugins-$pkgver.tar.bz2"

_builddir="$srcdir"/geany-plugins-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/*/*.la
}

_plugin() {
	pkgdesc="$2"
	local _d
	mkdir -p "$subpkgdir"/usr/lib/geany
	mv "$pkgdir"/usr/lib/geany/$1.so "$subpkgdir"/usr/lib/geany/ || return 1
	cd "$pkgdir"
	for _d in usr/*/geany-plugins/$1; do
		if [ -d "$_d" ]; then
			mkdir -p "$subpkgdir"/${_d%/*}
			mv "$pkgdir"/$_d "$subpkgdir"/$_d
		fi
	done
}

addons() { _plugin addons "Miscellaneous Addons for Geany"; }
codenav() { _plugin codenav "Navigate through your source code easily"; }
geanydoc() { _plugin geanydoc "Call documentation from within Geany"; }
geanyextrasel() { _plugin geanyextrasel "Additional features for selecting code"; }
geanygdb() { _plugin geanygdb "Debugger Plugin for Geany using GDB"; }
geanyinsertnum() { _plugin geanyinsertnum "Insert huge number ranges with small efforts"; }
geanylatex() { _plugin geanylatex "LaTeX support for Geany"; }
geanylipsum() { _plugin geanylipsum "Lorem Ipsum generator for Inserting Placeholder Text"; }
geanylua() { _plugin geanylua "Lua Scripting for Geany"; }
geanyprj() { _plugin geanyprj "Alternate project management tool for Geany"; }
geanysendmail() { _plugin geanysendmail "Send E-Mails from within Geany"; }
geanyvc() { _plugin geanyvc "Version Control for Geany"; }
pretty_print() { _plugin pretty-print "XML pretty printing plugin for Geany"; }
shiftcolumn() { _plugin shiftcolumn "Move Blocks of Text horizontally"; }
spellcheck() { _plugin spellcheck "Spellcheck text in Geany"; }
treebrowser() { _plugin treebrowser "Alternate file browser plugin "; }


md5sums="94bc4901217641a07f840d92179643b0  geany-plugins-0.20.tar.bz2"