aboutsummaryrefslogtreecommitdiffstats
path: root/main/geany/APKBUILD
blob: 22156a1623cf4bc8c8cd33a2d64aa300a4d26767 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geany
pkgver=0.20
pkgrel=2
pkgdesc="A fast and lightweight IDE"
url="http://www.geany.org"
arch="all"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="gtk+-dev intltool perl-xml-parser vte-dev"
depends=
depends_dev="gtk+-dev"
install=
source="http://download.$pkgname.org/$pkgname-$pkgver.tar.gz
	http://download.geany.org/contrib/tags/dbus-glib-0.76.c.tags
	http://download.geany.org/contrib/tags/drupal.php.tags
	http://download.geany.org/contrib/tags/ethos-1.0.c.tags
	http://download.geany.org/contrib/tags/geany-api-0.19.c.tags
	http://download.geany.org/contrib/tags/gladeui-1.0.c.tags
	http://download.geany.org/contrib/tags/gnt.c.tags
	http://download.geany.org/contrib/tags/gtk220.c.tags
	http://download.geany.org/contrib/tags/gtkscintilla-2.0.c.tags
	http://download.geany.org/contrib/tags/gtksourceview-3.0.c.tags
	http://download.geany.org/contrib/tags/libdevhelp-2.0.c.tags
	http://download.geany.org/contrib/tags/libgdl-3.0.c.tags
	http://download.geany.org/contrib/tags/libxml-2.0.c.tags
	http://download.geany.org/contrib/tags/sqlite3.c.tags
	http://download.geany.org/contrib/tags/standard.css.tags
	http://download.geany.org/contrib/tags/std.glsl.tags
	http://download.geany.org/contrib/tags/std.latex.tags
	http://download.geany.org/contrib/tags/std.vala.tags
	http://download.geany.org/contrib/tags/v4l2.c.tags
	http://download.geany.org/contrib/tags/webkit-1.0.c.tags
	http://download.geany.org/contrib/tags/wordpress.php.tags
	http://download.geany.org/contrib/tags/xfce46.c.tags
	http://advamacs.com/pub/tcl.tcl.tags
"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	# set default terminal to Terminal
	sed -e 's/xterm/Terminal/g' \
		-i src/keyfile.c
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr
	make || return 1
}

package() {
	cd "$_builddir"
	sed -i 's|MimeType=text/plain;|MimeType=|' geany.desktop || return 1
	sed -i 's|Sh=|Sh=APKBUILD;|' data/filetype_extensions.conf || return 1
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '*.la' -delete

	# install the tags
	local _tags=
	for i in $source; do
		case $i in
		*.tags) _tags="$_tags $srcdir/${i##*/}";;
		esac
	done
	mkdir -p "$pkgdir"/usr/share/$pkgname/tags
	install -p $_tags "$pkgdir"/usr/share/$pkgname/tags/
	install -p $_tags "$pkgdir"/usr/share/$pkgname/tags
}
md5sums="7e7d6e4a40e04ecacb9bc317f97becfb  geany-0.20.tar.gz
a3f52be1523faacbd8496409051ed598  dbus-glib-0.76.c.tags
33bd4e563c52e1286324b81601a77995  drupal.php.tags
95221e92a942928569f23ef03c7f5dc8  ethos-1.0.c.tags
9a69cab6ea545b42cf47c5d4eb2003f2  geany-api-0.19.c.tags
037e3fc18636f435219e7f1f444c21c6  gladeui-1.0.c.tags
6e7def475cffccc1bf79da98518309ae  gnt.c.tags
0da3e49a2f4288e8d0a55e5ac1b57a30  gtk220.c.tags
5daa5d0465a5a6d58093b59e69fce758  gtkscintilla-2.0.c.tags
e934ead8f360a0908429a653b1bde54b  gtksourceview-3.0.c.tags
a5d3d36719bdb5d51ebd81130ea84992  libdevhelp-2.0.c.tags
adc3b47ffea5badb846507fff1d8a961  libgdl-3.0.c.tags
94f765658c159b7c196b96f26aaca11d  libxml-2.0.c.tags
6d3b51dd8e99a82c8c055804319f5c97  sqlite3.c.tags
676ae1e2f01b1baf716e11700a05d94e  standard.css.tags
5f8f1dec5d3afa0105c7d760be0932f3  std.glsl.tags
d45fae42c5733e081a745fcbb31d5f23  std.latex.tags
764e506272214ac75d55a224afca1e01  std.vala.tags
faa05eceb4d806e0c9f7476e4644a65b  v4l2.c.tags
d046ab5c4e7ab2a6ba8961285edc4b2d  webkit-1.0.c.tags
0e51399cc03d094d15b389a2f89dea51  wordpress.php.tags
8f873570cc244b9185ae26e560887490  xfce46.c.tags
4821553235a2b6752356229ba64631b6  tcl.tcl.tags"