aboutsummaryrefslogtreecommitdiffstats
path: root/community/geany-plugins/APKBUILD
blob: 350f645bf5c5783753eafc6d699676e0d603ec77 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geany-plugins
pkgver=1.32
pkgrel=0
pkgdesc="Plugins for Geany"
url="https://plugins.geany.org/"
arch="all"
license="GPL-3.0-or-later"
depends=""
makedepends="lua-dev geany-dev enchant-dev intltool gtkspell-dev libxml2-dev
	bash vte-dev vala libsoup-dev gpgme-dev python2-dev py-gtk-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc
	$pkgname-addons
	$pkgname-autoclose
	$pkgname-automark
	$pkgname-codenav
	$pkgname-commander
	$pkgname-defineformat
	$pkgname-geanyctags
	$pkgname-geanydoc
	$pkgname-geanyextrasel
	$pkgname-geanyinsertnum
	$pkgname-geanylatex
	$pkgname-geanylua
	$pkgname-geanymacro
	$pkgname-geanyminiscript
	$pkgname-geanynumberedbookmarks
	$pkgname-geanypg
	$pkgname-geanyprj
	$pkgname-geanypy
	$pkgname-geanyvc
	$pkgname-geniuspaste
	$pkgname-lineoperations
	$pkgname-lipsum
	$pkgname-multiterm
	$pkgname-overview
	$pkgname-pairtaghighlighter
	$pkgname-pohelper
	$pkgname-pretty-printer:pretty_printer
	$pkgname-projectorganizer
	$pkgname-scope
	$pkgname-sendmail
	$pkgname-shiftcolumn
	$pkgname-spellcheck
	$pkgname-tableconvert
	$pkgname-treebrowser
	$pkgname-updatechecker
	$pkgname-xmlsnippets
	$pkgname-workbench
	$pkgname-keyrecord
	$pkgname-utils

	$pkgname-lang
	"

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

_builddir="$srcdir"/$pkgname-$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 \
		--disable-debugger \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

utils() {
	pkgdesc="Reusable shared library used by geany-plugins"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libgeanypluginutils.so* \
		"$subpkgdir"/usr/lib/
}

_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
			rmdir "$pkgdir"/${_d%/*} || true
		fi
	done
}

addons() { _plugin addons "Miscellaneous Addons for Geany"; }
autoclose() { _plugin autoclose "Auto-closing features for Geany"; }
automark() { _plugin automark "Highlights all words that match current word"; }
codenav() { _plugin codenav "Navigate through your source code easily"; }
commander() { _plugin commander "Control Geany using commands from a command panel"; }
defineformat() { _plugin defineformat "Plugin to write multiline defines with aligned backslash"; }
geanyctags() { _plugin geanyctags "Generate and query ctags files for a Geany project"; }
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"; }
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"; }
geanypg() { _plugin geanypg "A plugin for Geany that allows the user to encrypt, decrypt and verify signatures with GnuPG"; }
geanypy() { _plugin geanypy "Provides Python bindings for Geany";
	mv "$pkgdir"/usr/lib/geany/geanypy \
		"$pkgdir"/usr/lib/geany/*.py \
		"$subpkgdir"/usr/lib/geany/
}
geanyprj() { _plugin geanyprj "Alternate project management tool for Geany"; }
geanyvc() { _plugin geanyvc "Version Control for Geany"; }
geniuspaste() { _plugin geniuspaste "A plugin to paste the code from Geany into different pastebins"; }
multiterm() { _plugin multiterm "Multiple terminals inside of Geany"; }
lineoperations() { _plugin lineoperations "Assortment of simple line functions that can be applied to an open file"; }
lipsum() { _plugin lipsum "Lorem Ipsum generator for Inserting Placeholder Text"; }
overview() { _plugin overview "Overview over the code in a sidebar"; }
pairtaghighlighter() { _plugin pairtaghighlighter "Finds and highlights matching HTML tag"; }
pohelper() { _plugin pohelper "A plugin for Geany that improves the support for GetText translation files"; }
pretty_printer() { _plugin pretty-printer "XML pretty printing plugin for Geany"; }
projectorganizer() { _plugin projectorganizer "Extension of Geany's project management"; }
scope() { _plugin scope "Graphical GDB front-end"; }
sendmail() { _plugin sendmail "Send E-Mails from within Geany"; }
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"; }
updatechecker() { _plugin updatechecker "A plugin to check whether there is a more recent version of Geany available"; }
xmlsnippets() { _plugin xmlsnippets "Extends XML/HTML tag autocompletion provided by Geany"; }
workbench() { _plugin workbench "Support for multiple projects"; }
keyrecord() { _plugin keyrecord "Record a sequence of keystrokes and replay it"; }

sha512sums="ec45786cbee48673f78a11e179753e5fc5b6c520221434c9410af3f5a3a320b4dd02d90d850758ad1b0555e245c96d3fc2426c859cdc95d1aa5258e0d1ce7162  geany-plugins-1.32.tar.bz2"