aboutsummaryrefslogtreecommitdiffstats
path: root/main/geany/APKBUILD
blob: aa9c243ace8e3b775615b03d7b8e90352eb22a85 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geany
pkgver=0.21
pkgrel=2
pkgdesc="A fast and lightweight IDE"
url="http://www.geany.org"
arch="all"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="gtk+-dev intltool perl-xml-parser vte-dev"
depends=
depends_dev="gtk+-dev"
install=
replaces="geany-dev"
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
	link-gmodule.patch
"

_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
	# 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
}

dev() {
	default_dev
	mv "$subpkgdir"/usr/share/geany/*.c "$pkgdir"/usr/share/geany/ \
		|| return 1
	mv "$subpkgdir"/usr/share/geany/templates/files/*.c \
		"$pkgdir"/usr/share/geany/templates/files/ \
		|| return 1
	rmdir "$subpkgdir"/usr/share/geany/templates/files \
		"$subpkgdir"/usr/share/geany/templates \
		"$subpkgdir"/usr/share/geany \
		"$subpkgdir"/usr/share
}

md5sums="d2734776badc3f5f9a778814ed56fb8a  geany-0.21.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
5e47a67fd3ce35a8b9a21890082cd6cd  link-gmodule.patch"