summaryrefslogtreecommitdiffstats
path: root/main/vte3/APKBUILD
blob: dae6bb48c32f8fb03632ceccb5cebc22506b9cf6 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vte3
pkgver=0.36.0
pkgrel=0
pkgdesc="Virtual Terminal Emulator library"
url="https://developer.gnome.org/vte/"
arch="all"
license="LGPL2+"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
depends_dev="glib-dev pango-dev gtk+3.0-dev"
makedepends="$depends_dev intltool python ncurses-dev gobject-introspection-dev"
source="http://ftp.gnome.org/pub/GNOME/sources/vte/${pkgver%.*}/vte-$pkgver.tar.xz
	allow_alt_in_terminal.patch"

_builddir="$srcdir"/vte-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch)
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$_builddir"
	export CFLAGS="$CFLAGS -D_GNU_SOURCE"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/$pkgname \
		--localstatedir=/var \
		--disable-static \
		--enable-introspection \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	ln -sf /usr/share/vte/termcap-0.0 "$pkgdir"/usr/share/vte/termcap
	find "$pkgdir" -name '*.la' -delete
}

md5sums="64f15103446a8837cc1bc6f2619f10fe  vte-0.36.0.tar.xz
6ae30139b7d7ca78b56a3b55426c83f2  allow_alt_in_terminal.patch"
sha256sums="faa036e5a89fd658f5c62e16a57c493d2107d840a0e918b9f8acb547471a85f7  vte-0.36.0.tar.xz
6e4488f9a60f52a2a7eeb09865bdc42f00c309eb4cf8d548b524b9c33fadcd8a  allow_alt_in_terminal.patch"
sha512sums="7666fdb2d3458390b154add7da781cb973498b019d859a3396797102dc4840d9bdbae44c83257a3c67609e658173dc0d5ff382b0343a5bf3c6db43e04392893c  vte-0.36.0.tar.xz
a4786a97a5caa42db3b29808c3542777684fcf7d931a116d4e3d847e859a64fb59a2d5b60927dc8e5c2733efc55c29aa4d30aeb02597aff5f034c172cc528833  allow_alt_in_terminal.patch"