diff options
author | Shengyu Zhang | 2022-03-01 00:25:09 +0800 |
---|---|---|
committer | Shengyu Zhang | 2022-03-01 00:25:09 +0800 |
commit | 01a9be0f487647ccc927cf15435824cec42301e0 (patch) | |
tree | 14620c633f21b14ae178a438adfd3f0ddc1fbf54 /PKGBUILD | |
download | aur-01a9be0f487647ccc927cf15435824cec42301e0.tar.gz |
addpkg: vte4-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..caeeebd6ef2c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Shengyu Zhang <la@archlinuxcn.org> + +pkgname=vte4-git +pkgver=0.61.90+r273+gf4b915ae +pkgrel=1 +pkgdesc="Virtual Terminal Emulator widget" +url="https://wiki.gnome.org/Apps/Terminal/VTE" +arch=(x86_64) +license=(LGPL) +depends=(gtk3 pcre2 gnutls fribidi systemd vte-common) +makedepends=(gobject-introspection vala git gtk-doc gperf meson) +source=("git+https://gitlab.gnome.org/GNOME/vte.git") +sha256sums=('SKIP') +provides+=(libvte-2.91.so) + +pkgver() { + cd vte + git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' +} + +prepare() { + cd vte +} + +build() { + arch-meson vte build \ + -D b_lto=false \ + -D docs=true \ + -D gtk3=false \ + -D gtk4=true + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs +} + +package() { + meson install -C build --destdir "$pkgdir" + + # Conflict with vte-common + rm -rf "$pkgdir"/etc/profile.d + rm -rf "$pkgdir"/usr/lib/{systemd,vte-urlencode-cwd} + + # Conflict with vte3 + rm -rf "$pkgdir/usr/share/locale/" +} + +# vim:set sw=2 et: |