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)
48 source=(https://ftp.gnu.org/gnu/emacs/${pkgname}-${pkgver}.tar.xz{,.sig})
49 b2sums=('a7e4990658b5e7306510f8dded93aaf0b82cdd9306df8b786526d038c3249ef9579287075f2235eb01a71ae1699db555254f137b86ab2d2305b45895053df552'
51 validpgpkeys=('17E90D521672C04631B1183EE78DAE0F3115E06B' # Eli Zaretskii <eliz@gnu.org>
52 'CEA1DE21AB108493CC9C65742E82323B8F4353EE') # Stefan Kangas <stefankangas@gmail.com>
55 cp -ar ${pkgname}-${pkgver} ${pkgbase}-${pkgver}-nativecomp
56 cp -ar ${pkgname}-${pkgver} ${pkgbase}-${pkgver}-nox
60 local _confflags="--sysconfdir=/etc \
62 --libexecdir=/usr/lib \
63 --localstatedir=/var \
69 export ac_cv_lib_gif_EGifPutExtensionLast=yes
71 cd ${pkgname}-${pkgver}
72 ./configure $_confflags \
76 cd ../${pkgbase}-${pkgver}-nativecomp
78 --with-x-toolkit=gtk3 \
79 --with-native-compilation \
81 make NATIVE_FULL_AOT=1 bootstrap
83 cd ../${pkgbase}-${pkgver}-nox
92 pkgdesc='The extensible, customizable, self-documenting real-time display editor'
94 cd ${pkgname}-${pkgver}
95 make DESTDIR="${pkgdir}" install
97 # remove conflict with ctags package
98 mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs}
99 mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
101 # fix user/root permissions on usr/share files
102 find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \;
105 package_emacs-nativecomp() {
106 pkgdesc='The extensible, customizable, self-documenting real-time display editor with native compilation enabled'
111 cd ${pkgbase}-${pkgver}-nativecomp
112 make DESTDIR="${pkgdir}" install
114 # remove conflict with ctags package
115 mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs}
116 mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
118 # fix user/root permissions on usr/share files
119 find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \;
122 package_emacs-nox() {
123 pkgdesc='The extensible, customizable, self-documenting real-time display editor without X11 support'
141 cd ${pkgbase}-${pkgver}-nox
142 make DESTDIR="${pkgdir}" install
144 # remove conflict with ctags package
145 mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs}
146 mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
148 # fix user/root permissions on usr/share files
149 find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \;