summaryrefslogtreecommitdiff
path: root/opt/emacs/MAKEPKG
blob: 72c8d7f9e1236e95c95021e36e9e747394547790 (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
#!/bin/mkpkg
# description: The extensible, customizable, self-documenting text editor
# url: https://www.gnu.org/software/emacs/

name=emacs
version=31.1
release=1
depends=(gtk3 cairo pango harfbuzz gdk-pixbuf giflib libjpeg-turbo libpng tiff
         libxml2 ncurses zlib glib gdk-pixbuf libxkbcommon gnutls wayland
         wayland-protocols dbus)
makedeps=()
source=(https://ftp.gnu.org/gnu/emacs/emacs-$version.tar.xz)
sha256sums=(
    "1da5790d9580c81932b5bf700633114468da7b3412d69faa767daebf974f4586"
)

build() {
    cd $name-$version

    CONFIG_SHELL=/bin/bash ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --with-pgtk \
        --with-cairo \
        --with-harfbuzz \
        --with-libxml2 \
        --with-png \
        --with-jpeg \
        --with-gif \
        --with-tiff \
        --with-zlib \
        --with-xwidgets=no \
        --with-tree-sitter=ifavailable \
        --with-gnutls \
        --with-dbus \
        --without-x \
        --without-gconf \
        --without-gsettings \
        --without-gpm \
        --without-kerberos \
        --without-selinux \
        --without-native-compilation \
        --without-imagemagick \
        CC=clang \
        CXX=clang++ \
        CFLAGS="$CFLAGS" \
        CXXFLAGS="$CXXFLAGS" \
        LDFLAGS="$LDFLAGS -fuse-ld=lld"

    make -j$(nproc)
    make DESTDIR=$PKG install
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh