aboutsummaryrefslogtreecommitdiffstats
path: root/main/vte/APKBUILD
blob: 4ec5d50b5e6c5af3c0d03afeee34d914683e391d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vte
pkgver=0.28.2
pkgrel=3
pkgdesc="Virtual Terminal Emulator library"
url="http://www.gnome.org"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
makedepends="pkgconfig gtk+-dev intltool python ncurses-dev"
source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
	allow_alt_in_terminal.patch
	fix-includes.patch
	"

depends_dev="glib-dev pango-dev gtk+-dev"
prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch)
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

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

package() {
	cd "$srcdir"/$pkgname-$pkgver
	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="f07a4bf943194f94b7f142db8f7f36dc  vte-0.28.2.tar.bz2
6ae30139b7d7ca78b56a3b55426c83f2  allow_alt_in_terminal.patch
4872d596fb461f11e9aa753f5a65dd08  fix-includes.patch"
sha256sums="8d04e202b617373dfb47689e5e628febe2c58840b34cccc4af4feb88c48df903  vte-0.28.2.tar.bz2
6e4488f9a60f52a2a7eeb09865bdc42f00c309eb4cf8d548b524b9c33fadcd8a  allow_alt_in_terminal.patch
bb8bfcb6d88f40dba0025e9ec95f579219db7e80654371a1c926fa39a38134b2  fix-includes.patch"
sha512sums="271aecbc0444c424afb70d81838d0f6f49957a3b74d3952c0b97fadacfe359eab989abae03b9b64a8b598abdb189db00ee534254d8044e496906c51947d314d1  vte-0.28.2.tar.bz2
a4786a97a5caa42db3b29808c3542777684fcf7d931a116d4e3d847e859a64fb59a2d5b60927dc8e5c2733efc55c29aa4d30aeb02597aff5f034c172cc528833  allow_alt_in_terminal.patch
bf8174189fe842d171c04633ce1f8b920f3a515108db48bfe1fff7e537960a88f7439a55b283b6ade6ebfe78ab8ff2473f3be2d062dc00aa74b93a13624b4d3c  fix-includes.patch"