blob: 537f42665403106c3a6c6dd0c48602ffa8df3f5e (
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
|
# Contributor: Sainnhe Park <sainnhe@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-ng
pkgver=28.1.50
_fix_commit=732c590
pkgrel=2
pkgdesc="A new approach to Emacs - Including TypeScript, Threading, Async I/O, and WebRender"
arch=('x86_64')
url="https://emacs-ng.github.io/emacs-ng"
license=('GPL3')
provides=('emacs')
conflicts=('emacs')
depends=('jansson' 'ncurses' 'libgccjit' 'librsvg' 'libxpm' 'libjpeg-turbo' 'libtiff'
'giflib' 'libpng' 'harfbuzz' 'libxcb' 'libxml2' 'gpm' 'dune' 'dbus' 'lcms2'
'hicolor-icon-theme' 'desktop-file-utils' 'alsa-lib' 'gnutls' 'cairo' 'zlib'
)
makedepends=('rustup' 'python' 'texlive-core')
source=("$pkgname-$pkgver_${_fix_commit}.tar.gz::https://github.com/emacs-ng/emacs-ng/archive/refs/tags/v0.0.${_fix_commit}.tar.gz")
sha256sums=('8a51f4475ebec30460d4f6e761cd469ad1ab66ba97c078904533f207a9bcbeab')
prepare() {
cd ${pkgname}-0.0.${_fix_commit}
rustup install "$(cat rust-toolchain)"
}
build() {
cd ${pkgname}-0.0.${_fix_commit}
RUSTUP_TOOLCHAIN=$(cat rust-toolchain)
./autogen.sh
./configure CFLAGS="-Wl,-rpath,shared -Wl,--disable-new-dtags" \
--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var \
--with-json --with-modules --with-harfbuzz --with-compress-install \
--with-threads --with-included-regex --with-zlib --with-cairo --with-libsystemd \
--with-rsvg --with-native-compilation --with-webrender --without-sound \
--without-imagemagick --with-gpm --with-dbus --without-pop --without-mailutils \
--without-gsettings --with-all --disable-build-details
make NATIVE_FULL_AOT=0 \
PATH="$HOME/.rustup/toolchains/${RUSTUP_TOOLCHAIN}-$(uname -m)-unknown-linux-gnu/bin:$PATH"
make pdf
}
package() {
cd ${pkgname}-0.0.${_fix_commit}
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install-pdf
# remove conflict with ctags package
mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
# fix user/root permissions on usr/share files
find "$pkgdir"/usr/share/emacs/$pkgver -exec chown root:root {} \;
}
|