aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtksourceview2/APKBUILD
blob: 1a01ed791fa533ce50e872766c20b9fac348b9bb (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtksourceview2
pkgver=2.10.5
pkgrel=0
pkgdesc="A text widget adding syntax highlighting and more to GNOME"
url="http://live.gnome.org/GtkSourceView"
arch="all"
license="GPL"
replaces="gtksourceview"
depends=
depends_dev="gtk+2.0-dev libxml2-dev"
makedepends="$depends_dev gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/gnome/sources/gtksourceview/${pkgver%.*}/gtksourceview-$pkgver.tar.bz2"

_builddir="$srcdir/gtksourceview-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="1219ad1694df136f126507466aeb41aa  gtksourceview-2.10.5.tar.bz2"
sha256sums="c585773743b1df8a04b1be7f7d90eecdf22681490d6810be54c81a7ae152191e  gtksourceview-2.10.5.tar.bz2"
sha512sums="6f64acef6196bfc5953e0b148d7e460d366073b5e21367c01b01fc4d1c86ffe8aca71ecd77cf0814e47d8fc3085495f25bbbdc69e746987b02fd02fcda64886d  gtksourceview-2.10.5.tar.bz2"