# Maintainer: Davi da Silva Böger # Contributor: Manuel Hüsers # Contributor: Fernando Fernandez # Contributor: Ionut Biru pkgbase='vte3-notification' pkgname=("${pkgbase}" 'vte-notification-common') pkgver=0.48.2 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=('intltool' 'gobject-introspection' 'gtk-doc' 'vala' 'gperf' 'glade') options=('!emptydirs') # Fedora patches: http://pkgs.fedoraproject.org/cgit/rpms/vte291.git/tree/ _frepourl='http://pkgs.fedoraproject.org/cgit/rpms/vte291.git' _frepobranch='f26' _fpatchfile='vte291-command-notify-scroll-speed.patch' source=( "https://download.gnome.org/sources/vte/${pkgver::4}/vte-${pkgver}.tar.xz" "${_fpatchfile}::${_frepourl}/plain/${_fpatchfile}?h=${_frepobranch}" 'add-zsh-notfication-support.patch' ) sha256sums=('c278b301edfe38b43baec1bccc86e225dacea5b670a96ca7ea55ca9a4b030690' 'd32201c04d9f688195725bf76d7c618ae24178a2578da01c507d8216f082cf8e' '150a151404ca565f70259044661b2ef5cda43142ca677e7da324614eef8cf45a') prepare () { cd "vte-${pkgver}" patch -p1 -i "../${_fpatchfile}" patch -p1 -i '../add-zsh-notfication-support.patch' } build() { cd "vte-${pkgver}" ./configure --prefix='/usr' --sysconfdir='/etc' \ --libexecdir='/usr/lib/vte' \ --localstatedir='/var' --disable-static \ --enable-introspection --enable-glade-catalogue --enable-gtk-doc sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package_vte3-notification(){ depends+=('vte-notification-common') provides=("vte3=${pkgver}") conflicts=('vte3') cd "vte-${pkgver}" make DESTDIR="${pkgdir}" install rm "${pkgdir}/etc/profile.d/vte.sh" } package_vte-notification-common() { depends=('sh') pkgdesc='Common files used by vte and vte3' arch=('any') provides=("vte-common=${pkgver}") conflicts=('vte-common') cd "vte-${pkgver}" install -Dm644 'src/vte.sh' "${pkgdir}/etc/profile.d/vte.sh" }