aboutsummaryrefslogtreecommitdiffstats
path: root/testing/geany-plugins/APKBUILD
blob: 80f2f063a28ef9902ff9e37dedc6e985cb3fc5e0 (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geany-plugins
pkgver=1.23
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 vte-dev vala"
install=""
subpackages="$pkgname-doc
	$pkgname-addons
	$pkgname-codenav
	$pkgname-commander
	$pkgname-debugger
	$pkgname-geanydoc
	$pkgname-geanyextrasel
	$pkgname-geanyinsertnum
	$pkgname-geanylatex
	$pkgname-geanylipsum
	$pkgname-geanylua
	$pkgname-geanymacro
	$pkgname-geanyminiscript
	$pkgname-geanynumberedbookmarks
	$pkgname-geanyprj
	$pkgname-geanysendmail
	$pkgname-geanyvc
	$pkgname-gproject
	$pkgname-multiterm
	$pkgname-pretty-printer:pretty_printer
	$pkgname-scope
	$pkgname-shiftcolumn
	$pkgname-spellcheck
	$pkgname-tableconvert
	$pkgname-treebrowser
	$pkgname-xmlsnippets

	$pkgname-lang
	"

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 \
		--with-lua-pkg=lua \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/geany-plugins/*/*.la \
		"$pkgdir"/usr/lib/geany/*.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"; }
commander() { _plugin commander "Control Geany using commands from a command panel"; }
debugger() { _plugin debugger "Debugger Plugin for Geany"; }
geanydoc() { _plugin geanydoc "Call documentation from within Geany"; }
geanyextrasel() { _plugin geanyextrasel "Additional features for selecting code"; }
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"; }
geanymacro() { _plugin geanymacro "User defined Macros for Geany"; }
geanyminiscript() { _plugin geanyminiscript "Geany Mini-Script filter plugin"; }
geanynumberedbookmarks() { _plugin geanynumberedbookmarks "Provide users 10 numbered Bookmarks"; }
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"; }
gproject() { _plugin gproject "Extension of Geany's project management";
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/icons "$subpkgdir"/usr/share/
}
multiterm() { _plugin multiterm "Multiple terminals inside of Geany"; }
pretty_printer() { _plugin pretty-printer "XML pretty printing plugin for Geany"; }
scope() { _plugin scope "Graphical GDB front-end"; }
shiftcolumn() { _plugin shiftcolumn "Move Blocks of Text horizontally"; }
spellcheck() { _plugin spellcheck "Spellcheck text in Geany"; }
tableconvert() { _plugin tableconvert "Helps on converting a tabulator separated selection into a table"; }
treebrowser() { _plugin treebrowser "Alternate file browser plugin"; }
xmlsnippets() { _plugin xmlsnippets "Extends XML/HTML tag autocompletion provided by Geany"; }

md5sums="d851dbdaf95fb8b74ece43c0a973b748  geany-plugins-1.23.tar.bz2"
sha256sums="ff26860edd1cbaea88c73bd8c2bd02f9ba04046674f05d3696baf66582e2bf58  geany-plugins-1.23.tar.bz2"
sha512sums="6b8eab1b3cb0555aaf1a81714ddb6d9cb1c636e0a2839c476c3740bd9fe34851243fdbd5ef3cf52b6d30eb9536844d1504d2547740f8d1d1a6cb377e001be109  geany-plugins-1.23.tar.bz2"