1 # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
2 # Contributor: Renchi Raju <renchi@green.tam.uiuc.edu>
7 pkgdesc="The extensible, customizable, self-documenting real-time display editor"
9 url="https://www.gnu.org/software/emacs/emacs.html"
11 depends=('librsvg' 'gpm' 'giflib' 'libxpm' 'libotf' 'm17n-lib' 'gtk3' 'hicolor-icon-theme' 'desktop-file-utils' 'alsa-lib' 'gnutls' 'jansson' 'cairo' 'harfbuzz')
12 validpgpkeys=('E6C9029C363AD41D787A8EBB91C1262F01EB8D39' '28D3BED851FDF3AB57FEF93C233587A47C207910')
13 source=(https://ftp.gnu.org/gnu/emacs/$pkgname-$pkgver.tar.xz{,.sig})
14 sha1sums=('8d18e2bfb6e28cf060ce7587290954e9c582aa25'
18 cd "$srcdir"/$pkgname-$pkgver
19 ac_cv_lib_gif_EGifPutExtensionLast=yes ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
20 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int \
21 --with-modules --with-cairo --with-harfbuzz
26 cd "$srcdir"/$pkgname-$pkgver
27 make DESTDIR="$pkgdir" install
29 # remove conflict with ctags package
30 mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
31 mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
33 # fix user/root permissions on usr/share files
34 find "$pkgdir"/usr/share/emacs/$pkgver -exec chown root:root {} \;