blob: 39f799cc963a12d3f9d4b48234e85808483e673c (
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
|
# Maintainer: Alex Dewar <alex.dewar@gmx.co.uk>
# Contributer: Davi da Silva Böger <dsboger@gmail.com>
pkgname='vte3-tilix'
pkgver=0.70.3
pkgrel=1
pkgdesc='Virtual Terminal Emulator widget (GTK3) (Fedora and Tilix patches)'
arch=('x86_64')
url='https://github.com/gnunn1/tilix/tree/master/experimental/vte'
license=('LGPL')
depends=('gtk3' 'pcre2' 'gnutls')
makedepends=('gi-docgen' 'intltool' 'gobject-introspection' 'gtk-doc' 'vala' 'gperf' 'glade' 'git')
options=('!emptydirs')
# Fedora patches: https://pkgs.fedoraproject.org/cgit/rpms/vte291.git/tree/
_frepourl='https://src.fedoraproject.org/rpms/vte291'
_frepobranch='rawhide'
_fpatchfile='vte291-cntnr-precmd-preexec-scroll.patch'
_fcommit='de03576168f1ec4beeb7330239f4debf3234b842'
# VTE source ref
_vtetag=${pkgver}
source=(
"git+https://gitlab.gnome.org/GNOME/vte.git#tag=$_vtetag"
"${_fpatchfile}-${_fcommit}::${_frepourl}/raw/${_fcommit}/f/${_fpatchfile}"
'alternate-screen.patch'
)
sha256sums=('SKIP'
'e5672a857c51a620ca5448da29e4ea5b0e319c2a54416a4ca615b0e0392e00a9'
'36fdf6a98c2be1b0c5b38a6116f160cdf0f270db688796ff1199234d64e49600')
prepare() {
cd "vte"
echo '-> Applying Fedora patches'
patch -p1 -i "../${_fpatchfile}-${_fcommit}"
echo '-> Applying tilix patch'
patch -p1 -i "../alternate-screen.patch"
}
build() {
arch-meson vte build -D b_lto=false -D docs=true -D gtk4=false
meson compile -C build
}
package_vte3-tilix(){
depends+=('vte-common')
provides=("vte3=${pkgver}" "vte3-notification=${pkgver}-2" 'vte3-terminix-git')
provides+=(libvte-2.91.so)
conflicts=('vte3' 'vte3-notification' 'vte3-terminix-git')
meson install -C build --destdir "$pkgdir"
# remove vte-common
rm -r "$pkgdir"/etc
rm -r "$pkgdir"/usr/lib/{systemd,vte-urlencode-cwd}
rm -r "$pkgdir"/usr/share/locale/
}
|