summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26019a20ce6216e75a1742d4c395f7df671d1871 (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
# Maintainer: Felipe Contreras <felipe.contreras@gmail.com>

# shellcheck disable=SC2034,SC2154,SC2115

pkgname=vte3-nohang
pkgver=0.72.2
pkgrel=1
pkgdesc='Virtual Terminal Emulator widget (GTK3) (plus no-hang patch)'
url='https://wiki.gnome.org/Apps/Terminal/VTE'
arch=(x86_64)
license=(LGPL)
depends=(fribidi gnutls gtk3 pcre2 systemd-libs vte-common)
makedepends=(gobject-introspection gperf meson vala)
options=('!lto')
source=("https://gitlab.gnome.org/GNOME/vte/-/archive/$pkgver/vte-$pkgver.tar.bz2"
  fix-exit-regression.patch
  desktop-notification.patch)
sha256sums=('5c8f789aaf76154de9d58205fda3b90790092d93791a5229c8b67c50d3f01068'
  'f43611e7f8ffdc5f1fe52a6e1fe274cc0b2d421d88abb7c2b0d073cfea61f6eb'
  '905672bd0e2b5685aeddd035e502a7062c4ada16f8a8eae9813cca1974ea0f77')

provides=("vte3=$pkgver" "vte3-notification=$pkgver" 'libvte-2.91.so')
conflicts=('vte3')

prepare() {
  cd "vte-$pkgver" || exit 1
  patch -p1 -i "$srcdir/fix-exit-regression.patch"
  patch -p1 -i "$srcdir/desktop-notification.patch"
}

build() {
  arch-meson "vte-$pkgver" build -D docs=false -D b_lto=false -D gtk4=false
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  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/
}

# vim: ts=2 et