blob: 8f1a971f178bc00a3d0e836719867927dc1d42c4 (
plain)
1 # Description: Virtual Terminal Emulator widget for use with GTK2
2 # URL: https://wiki.gnome.org/Apps/Terminal/VTE
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: gtk util-linux
5
6 name=vte
7 version=0.28.2
8 release=3
9 source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz
10 $name-0.30.1-alt-meta.patch
11 $name-0.28.2-interix.patch
12 $name-0.28.2-limit-arguments.patch
13 $name-0.28.2-repaint-after-change-scroll-region.patch)
14
15 build() {
16 cd $name-$version
17
18 # https://bugzilla.gnome.org/show_bug.cgi?id=663779
19 patch -p1 -i $SRC/$name-0.30.1-alt-meta.patch
20
21 # https://bugzilla.gnome.org/show_bug.cgi?id=652290
22 patch -p1 -i $SRC/$name-0.28.2-interix.patch
23
24 # Fix CVE-2012-2738, upstream bug #676090
25 patch -p1 -i $SRC/$name-0.28.2-limit-arguments.patch
26
27 # Fix https://bugzilla.gnome.org/show_bug.cgi?id=542087
28 # Patch from https://github.com/pld-linux/vte0/commit/1e8dce16b239e5d378b02e4d04a60e823df36257
29 patch -p1 -i $SRC/$name-0.28.2-repaint-after-change-scroll-region.patch
30
31 export CFLAGS="$CFLAGS -Wno-deprecated-declarations"
32
33 ./configure \
34 --prefix=/usr \
35 --libexecdir=/usr/lib/$name \
36 --disable-deprecation \
37 --disable-static \
38 --disable-debugging \
39 --disable-python \
40 --disable-gtk-doc \
41 --with-xft2 \
42 --with-pangox \
43 --with-gtk=2.0
44
45 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
46
47 make
48 make DESTDIR=$PKG install
49
50 rm -r $PKG/usr/share/{gtk-doc,locale}
51 rm $PKG/usr/lib/vte/gnome-pty-helper
52 }
|