# Maintainer: Davi da Silva Böger # Contributor: Manuel Hüsers # Contributor: Fernando Fernandez # Contributor: Jan de Groot # Contributor: Jason Edson _pkgname='gnome-terminal' pkgname="${_pkgname}-fedora" pkgver=3.40.2 pkgrel=1 pkgdesc='The GNOME Terminal Emulator with Fedora patches' arch=('i686' 'x86_64') url='https://wiki.gnome.org/Apps/Terminal' license=('GPL') depends=('vte3-notification>=0.64.0' 'gsettings-desktop-schemas') makedepends=('git' 'docbook-xsl' 'libnautilus-extension' 'gnome-shell' 'yelp-tools') optdepends=('gconf: for gnome-terminal-migration' 'libnautilus-extension: for "Open Terminal Here" in GNOME Files') provides=("${_pkgname}=${pkgver}") conflicts=("${_pkgname}") options=('!emptydirs') groups=('gnome') # Fedora patches: https://src.fedoraproject.org/cgit/rpms/gnome-terminal.git/tree/ _frepourl='https://src.fedoraproject.org/rpms/gnome-terminal' _frepobranch='rawhide' _fcommit='20c8ae0c81509876966af004f9b8510adb255954' _fpatchfile100='0001-build-Don-t-treat-warnings-as-errors.patch' _fpatchfile101='gnome-terminal-cntr-ntfy-autottl-ts.patch' _fpatchfile000='gnome-terminal-backports-from-upstream.patch' _fgsoverridefile='org.gnome.Terminal.gschema.override' source=( "https://download.gnome.org/sources/${_pkgname}/${pkgver::4}/${_pkgname}-${pkgver}.tar.xz" "${_fpatchfile100}-${_fcommit}::${_frepourl}/raw/${_fcommit}/f/${_fpatchfile100}" "${_fpatchfile101}-${_fcommit}::${_frepourl}/raw/${_fcommit}/f/${_fpatchfile101}" "${_fpatchfile000}-${_fcommit}::${_frepourl}/raw/${_fcommit}/f/${_fpatchfile000}" "${_fgsoverridefile}-${_fcommit}::${_frepourl}/raw/${_fcommit}/f/${_fgsoverridefile}" ) sha256sums=('4c79af8ffe8bd3a5daca1911ea2c0acd6872860a1dd5d7eea219f4ab4ae556ac' '672615edf1f8e5ede72bdfa2e671ad35d355a1df64f349762899ad7bc7254769' 'ecddc88378946a22e71fa1957d74fa6083e70cba512d4a3cbcce34a3289198af' 'f86490a61bc76d4a7e63f1ae9f8eb9ce280831c8d7bc252a59a6853c701566dc' 'a4a22834d6524fb697a8edf91c9489617d5ab2e513413fc84c6b8575320938f9') prepare () { cd "${_pkgname}-${pkgver}" patch -p1 -i "../${_fpatchfile000}-${_fcommit}" patch -p1 -i "../${_fpatchfile101}-${_fcommit}" patch -p1 -i "../${_fpatchfile100}-${_fcommit}" NOCONFIGURE=1 autoreconf -fvi } build() { cd "${_pkgname}-${pkgver}" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/${_pkgname} \ --disable-silent-rules \ --disable-static \ --with-nautilus-extension sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } check() { cd "${_pkgname}-${pkgver}" make check } package() { cd "${_pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -Dm644 "../${_fgsoverridefile}-${_fcommit}" \ "${pkgdir}/usr/share/glib-2.0/schemas/${_fgsoverridefile}" }