1 # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
2 # Maintainer: Frederik Schwan <freswa at archlinux dot org>
3 # Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org>
4 # Contributor: Renchi Raju <renchi@green.tam.uiuc.edu>
7 pkgname=(emacs emacs-nativecomp emacs-nox)
11 url='https://www.gnu.org/software/emacs/emacs.html'
47 makedepends=(libgccjit)
49 source=(https://ftp.gnu.org/gnu/emacs/${pkgname}-${pkgver}.tar.xz{,.sig})
50 b2sums=('a7e4990658b5e7306510f8dded93aaf0b82cdd9306df8b786526d038c3249ef9579287075f2235eb01a71ae1699db555254f137b86ab2d2305b45895053df552'
52 validpgpkeys=('17E90D521672C04631B1183EE78DAE0F3115E06B' # Eli Zaretskii <eliz@gnu.org>
53 'CEA1DE21AB108493CC9C65742E82323B8F4353EE') # Stefan Kangas <stefankangas@gmail.com>
56 cp -ar ${pkgname}-${pkgver} ${pkgbase}-${pkgver}-nativecomp
57 cp -ar ${pkgname}-${pkgver} ${pkgbase}-${pkgver}-nox
61 local _confflags="--sysconfdir=/etc \
63 --libexecdir=/usr/lib \
64 --localstatedir=/var \
70 export ac_cv_lib_gif_EGifPutExtensionLast=yes
72 cd ${pkgname}-${pkgver}
73 ./configure $_confflags \
77 cd ../${pkgbase}-${pkgver}-nativecomp
79 --with-x-toolkit=gtk3 \
80 --with-native-compilation \
82 make NATIVE_FULL_AOT=1 bootstrap
84 cd ../${pkgbase}-${pkgver}-nox
93 pkgdesc='The extensible, customizable, self-documenting real-time display editor'
95 cd ${pkgname}-${pkgver}
96 make DESTDIR="${pkgdir}" install
98 # remove conflict with ctags package
99 mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs}
100 mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
102 # fix user/root permissions on usr/share files
103 find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \;
106 package_emacs-nativecomp() {
107 pkgdesc='The extensible, customizable, self-documenting real-time display editor with native compilation enabled'
112 cd ${pkgbase}-${pkgver}-nativecomp
113 make DESTDIR="${pkgdir}" install
115 # remove conflict with ctags package
116 mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs}
117 mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
119 # fix user/root permissions on usr/share files
120 find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \;
123 package_emacs-nox() {
124 pkgdesc='The extensible, customizable, self-documenting real-time display editor without X11 support'
142 cd ${pkgbase}-${pkgver}-nox
143 make DESTDIR="${pkgdir}" install
145 # remove conflict with ctags package
146 mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs}
147 mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
149 # fix user/root permissions on usr/share files
150 find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \;