[PKGBUILD] Apply TheVaffel’s patch for Emacs transparent background

This commit adds a patch applied to Emacs’ source code so Emacs can
get a transparent background and not make the whole frame transparent.
This means images and text are no longer transparent, only the
background!
This commit is contained in:
Lucien Cartier-Tilet 2021-11-08 14:22:15 +01:00
parent 835954f30d
commit 6e8ec734c4
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -60,7 +60,7 @@ if [[ $CLI == "YES" ]] ; then
else else
pkgname="emacs-phundrak-git" pkgname="emacs-phundrak-git"
fi fi
pkgver=28.0.60.150902 pkgver=28.0.60.150911
pkgrel=1 pkgrel=1
pkgdesc="GNU Emacs. Development master branch with Phundraks tweaks." pkgdesc="GNU Emacs. Development master branch with Phundraks tweaks."
arch=('x86_64') arch=('x86_64')
@ -74,9 +74,11 @@ conflicts=('emacs' 'emacs26-git' 'emacs27-git' 'emacs28-git' 'emacs-seq' 'emacs-
replaces=('emacs' 'emacs26-git' 'emacs27-git' 'emacs28-git' 'emacs-seq' 'emacs-nox' 'emacs-git') replaces=('emacs' 'emacs26-git' 'emacs27-git' 'emacs28-git' 'emacs-seq' 'emacs-nox' 'emacs-git')
#source=("emacs-git::git://git.savannah.gnu.org/emacs.git") #source=("emacs-git::git://git.savannah.gnu.org/emacs.git")
# If Savannah fails for reasons, use Github's mirror # If Savannah fails for reasons, use Github's mirror
source=("emacs-git::git://github.com/emacs-mirror/emacs.git#branch=emacs-28") source=("emacs-git::git://github.com/emacs-mirror/emacs.git#branch=emacs-28"
"https://raw.githubusercontent.com/TheVaffel/emacs/master/emacs_background_transparency.patch")
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug) OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
md5sums=('SKIP') md5sums=('SKIP'
'SKIP')
################################################################################ ################################################################################
################################################################################ ################################################################################
@ -185,6 +187,8 @@ pkgver() {
# Doing so, breaks incremental compilation. # Doing so, breaks incremental compilation.
prepare() { prepare() {
cd "$srcdir/emacs-git" cd "$srcdir/emacs-git"
git apply --check "../../emacs_background_transparency.patch"
git apply "../../emacs_background_transparency.patch"
[[ -x configure ]] || ( ./autogen.sh git && ./autogen.sh autoconf ) [[ -x configure ]] || ( ./autogen.sh git && ./autogen.sh autoconf )
} }