blob: 4fbe9f02575b1fa88a5f3cfe9493dee8c5386adc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Maintainer: Thomas Jost <schnouki@schnouki.net>
# Comaintainer: Pedro A. López-Valencia <https://aur.archlinux.org/user/vorbote/>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# Contributor: Renchi Raju <renchi@green.tam.uiuc.edu>
pkgname=emacs-pretest
_pkgname=emacs
pkgver=28.1
_pkgver=28.1.90
pkgrel=0.902
pkgdesc="The extensible, customizable, self-documenting real-time display editor -- pretest version."
arch=('x86_64')
url="http://www.gnu.org/software/emacs/emacs.html"
license=('GPL3')
depends=(
'gpm'
'gtk3'
'jansson'
'giflib'
'libgccjit'
)
provides=('emacs')
conflicts=('emacs-nox')
# PGP keyservers are all but dead. PGP signatures are useless for all practical purpose. Kudos to the EU.
#source=(https://alpha.gnu.org/gnu/emacs/pretest/$_pkgname-$_pkgver.tar.xz{,.sig}) # PGP keyserver are all but dead.
#validpgpkeys=('28D3BED851FDF3AB57FEF93C233587A47C207910')
source=(https://alpha.gnu.org/gnu/emacs/pretest/$_pkgname-$_pkgver.tar.xz
nemacs readme_or_weep.txt)
b2sums=('00aa886946de3247954ad3b113d8f5861ffe4d46757ff4d33f4a88d688e9ffa86733316ae73809dd3017d4f8c3fe755bca658a752975a4c1ca716dcc4c206528'
'58e028b439d3c7cf03ea0be617b429a2c54e7aa1b8ca32b5ed489214daaa71e22c323de9662761ad2ce4de58e21dbe45ce6ce198f402686828574f8043d053d0'
'98cb6458eebfa1440eea1318c6974c135d1b9e1a559fb1ca4bca35fb4697cc8cd6d33b19427efead0f3e061556ba19e774eee4f4566673494ac2470da4725b28')
build() {
cd "$srcdir"/$_pkgname-$_pkgver
local confopts=(
--prefix=/usr
--sysconfdir=/etc
--libexecdir=/usr/lib
--localstatedir=/var
--with-gameuser=root:games
--with-x-toolkit=gtk3
--with-xft
--with-harfbuzz
--with-modules
--without-compress-install
--without-m17n-flt
--without-libotf
--without-imagemagick
# Beware https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228
# dconf and gconf break font settings set in ~/.emacs
# If you insist you'll need to play gymnastics with
# set-frame-font and set-menu-font. Good luck!
# Might be fixed in master, but you can't be be too cautious. Try
# emacs-git first.
--without-gsettings
--without-gconf
# Welcome to the JIT new world.
# To compile all extra site-lisp on demand (repos, AUR, ELPA, MELPA packages),
# add
# (setq comp-deferred-compilation t)
# to your .emacs file.
--with-native-compilation
)
./configure "${confopts[@]}"
make
}
package() {
cd "$srcdir"/$_pkgname-$_pkgver
make DESTDIR="$pkgdir" install FULL_NATIVE_AOT=1
# remove conflict with ctags package
mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
#mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
mv "$pkgdir"/usr/share/man/man1/{ctags.1,ctags.emacs.1}
install -D -m 755 "$srcdir"/nemacs "$pkgdir"/usr/bin/nemacs
# fix user/root permissions on usr/share files
find "$pkgdir"/usr/share/emacs/ | xargs chown root:root
# fix permssions on /var/games
mkdir -p "$pkgdir"/var/games/emacs
chmod 775 "$pkgdir"/var/games
chmod 775 "$pkgdir"/var/games/emacs
chown -R root:games "$pkgdir"/var/games
}
################################################################################
# vim:set ft=bash ts=2 sw=2 et:
|