# Maintainer: Stefano Capitani <stefano@manjaro.org> # Maintainer: Bernhard Landauer <oberon@manjaro.org> # Maintainer: Davi da Silva Böger <dsboger@gmail.com> # Contributor: Manuel Hüsers <manuel.huesers@uni-ol.de> # Contributor: Fernando Fernandez <fernando@softwareperonista.com.ar> # Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: Jason Edson <jaysonedson@gmail.com> pkgbase='vte3-notification' pkgname=("${pkgbase}" 'vte-notification-common') pkgver=0.60.1 pkgrel=1 pkgdesc='Virtual Terminal Emulator widget for use with GTK3 with Fedora patches' arch=('i686' 'x86_64') url='https://wiki.gnome.org/Apps/Terminal/VTE' license=('LGPL') depends=('gtk3' 'pcre2' 'gnutls') makedepends=('git' 'intltool' 'gobject-introspection' 'gtk-doc' 'meson' 'pango' 'vala' 'gperf' 'glade') options=('!emptydirs') # Fedora patches: https://pkgs.fedoraproject.org/cgit/rpms/vte291.git/tree/ _frepourl='https://src.fedoraproject.org/rpms/vte291' _frepobranch='f32' _fpatchfile='vte291-cntnr-precmd-preexec-scroll.patch' _fcommit='c2f2db14c1a858d79c69f344650c38987a675d09' # VTE source ref _vtetag=${pkgver} source=( "git+https://git.gnome.org/browse/vte#tag=$_vtetag" "${_fpatchfile}-${_fcommit}::${_frepourl}/raw/${_fcommit}/f/${_fpatchfile}" 'add-zsh-notfication-support.patch' ) sha256sums=('SKIP' '714470357ea008de821d62f60e551351d2379a4ef723410909fba3f68e7b57b0' 'd185af50b0cc9ffd4149bf9951b6c00c8677c75fcffd906ac1dc193a55db846f') prepare () { cd "vte" patch -p1 -i "../${_fpatchfile}-${_fcommit}" patch -p1 -i '../add-zsh-notfication-support.patch' } build() { arch-meson vte build -Db_lto=false -D docs=true ninja -C build } package_vte3-notification(){ depends+=('vte-notification-common') provides=("vte3=${pkgver}") conflicts=('vte3') DESTDIR="${pkgdir}" meson install -C build mv "$pkgdir/etc/profile.d/vte.sh" "$srcdir" mv "$pkgdir/etc/profile.d/vte.csh" "$srcdir" } package_vte-notification-common() { depends=('sh') pkgdesc='Common files used by vte and vte3' arch=('any') provides=("vte-common=${pkgver}") conflicts=('vte-common') install -Dt "$pkgdir/etc/profile.d" -m644 vte.sh install -Dt "$pkgdir/etc/profile.d" -m644 vte.csh }