Would you consider something like the patch below which (IMO) makes a few improvements to the CLI-only build? If you like the idea but object to some aspects of execution, I am happy to work with you to make adjustments. TIA!
diff --git a/PKGBUILD b/PKGBUILD
index 9ea97ca..bbe70b7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -48,16 +48,20 @@ NOGZ="YES" # Don't compress .el files.
################################################################################
pkgname="emacs-git"
-pkgver=28.0.50.144634
-pkgrel=2
+if [[ $CLI == "YES" ]]; then
+ pkgname="emacs-nox-git"
+fi
+pkgver=28.0.50.145922
+pkgrel=1
pkgdesc="GNU Emacs. Development master branch."
arch=('x86_64' )
url="http://www.gnu.org/software/emacs/"
license=('GPL3' )
-depends=('alsa-lib' 'gnutls' 'libxml2' 'jansson' 'm17n-lib' 'libotf' 'harfbuzz' 'gpm')
+nox_depends=('alsa-lib' 'gnutls' 'libxml2' 'jansson' 'gpm') # when $CLI is "YES"
+depends=("${nox_depends[@]}" 'm17n-lib' 'libotf' 'harfbuzz')
makedepends=('git')
provides=('emacs' 'emacs-seq')
-conflicts=('emacs' 'emacs26-git' 'emacs-27-git' 'emacs-seq')
+conflicts=('emacs' 'emacs26-git' 'emacs-27-git' 'emacs-seq', 'emacs-nox')
replaces=('emacs26-git' 'emacs27-git' 'emacs-seq')
source=("emacs-git::git://git.savannah.gnu.org/emacs.git")
# If Savannah access is blocked for reasons, use Github instead.
@@ -141,6 +145,10 @@ if [[ $XWIDGETS == "YES" ]]; then
fi
fi
+if [[ $CLI == "YES" ]]; then
+ depends=("${nox_depends[@]}")
+fi
+
if [[ $DOCS_PDF == "YES" ]]; then
makedepends+=( 'texlive-core' );
fi
@@ -235,6 +243,10 @@ fi
if [[ $NOGZ == "YES" ]]; then
_conf+=( '--without-compress-install' );
fi
+
+# ctags/etags may be provided by other packages, e.g, universal-ctags
+conf+=('--program-transform-name="s/\([ec]tags\)/\1.emacs/"')
+
################################################################################
################################################################################
@@ -275,15 +287,6 @@ package() {
if [[ $DOCS_HTML == "YES" ]]; then make DESTDIR="$pkgdir/" install-html; fi
if [[ $DOCS_PDF == "YES" ]]; then make DESTDIR="$pkgdir/" install-pdf; fi
- # remove conflict with ctags package
- mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
-
- if [[ $NOGZ == "YES" ]]; then
- mv "$pkgdir"/usr/share/man/man1/{ctags.1,ctags.emacs.1};
- else
- mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1.gz}
- fi
-
# fix user/root permissions on usr/share files
find "$pkgdir"/usr/share/emacs/ | xargs chown root:root
Pinned Comments
toropisco commented on 2017-06-30 19:14 (UTC) (edited on 2022-05-15 13:26 (UTC) by toropisco)
This PKGBUILD is a work in progress. If you find PACKAGING bugs, please let me know ASAP.
Upstream bugs are to be reported upstream. Check out the emacs-devel archives to confirm if this is an already known bug. In fact... Why are you not subscribed to
emacs-devel
?. Also check theemacs-bug-tracker
archives.Reporting bugs: Write to the Emacs Bug Tracker and report it there. Or, better yet, use the
debbugs
client included with the text editor. You will find instructions at https://debbugs.gnu.org/. Good luck!If you confirm it is a packaging bug, you are welcome to report it here.
Yaourt and other automated tools users BEWARE! This PKGBUILD is written with hand updating in mind and I won't fix bugs arising from such use. Besides, cloning the same repository time and time again from a non-profit such as the GNU Project/FSF gives out a very low image of you.