upgpkg: emacs 28.1-1
[arch-packages.git] / emacs / trunk / PKGBUILD
blobc76fb972ba439f17916c4607f73774d377ffc32a
1 # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
2 # Contributor: Renchi Raju <renchi@green.tam.uiuc.edu>
4 pkgname=emacs
5 pkgver=28.1
6 pkgrel=1
7 pkgdesc="The extensible, customizable, self-documenting real-time display editor"
8 arch=('x86_64')
9 url="https://www.gnu.org/software/emacs/emacs.html"
10 license=('GPL3')
11 depends=('librsvg' 'gpm' 'giflib' 'libxpm' 'libotf' 'm17n-lib' 'gtk3' 'hicolor-icon-theme' 'desktop-file-utils' 'alsa-lib' 'gnutls' 'jansson' 'cairo' 'harfbuzz')
12 validpgpkeys=('17E90D521672C04631B1183EE78DAE0F3115E06B')
13 source=(https://ftp.gnu.org/gnu/emacs/$pkgname-$pkgver.tar.xz{,.sig})
14 sha1sums=('a198d69dfa5a42c30cabe9a82edb101ac5ee423c' 'SKIP')
17 prepare() {
18   cd $pkgname-$pkgver
21 build() {
22   cd "$srcdir"/$pkgname-$pkgver
23   ac_cv_lib_gif_EGifPutExtensionLast=yes ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
24                                     --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int \
25                                     --with-modules --with-cairo --with-harfbuzz
26   make
29 package() {
30   cd "$srcdir"/$pkgname-$pkgver
31   make DESTDIR="$pkgdir" install
33   # remove conflict with ctags package
34   mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
35   mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
37   # fix user/root permissions on usr/share files
38   find "$pkgdir"/usr/share/emacs/$pkgver -exec chown root:root {} \;