summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8d790dcaaa48d8b1636b36a7084dfee187082fc (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
# Maintainer: cindrmon <cindrmon@protonmail.com>
pkgname=emacs
pkgdesc="The extensible, customizable, self-documenting real-time display editor."
pkgver=27.2
pkgrel=1
arch=('x86_64')
url="https://www.gnu.org/software/emacs/emacs.html"
license=("GPL3")
depends=(
    'bash'
    'libxpm-dev'
    'libjpeg-dev'
    'libgif-dev'
    'libtiff-dev'
    'libgnutls28-dev'
    'libx11-dev'
    'libgtk-3-dev'
    'libncurses-dev'
)

source=("https://mirror.ossplanet.net/gnu/emacs/${pkgname}-${pkgver}.tar.xz")
sha256sums=('SKIP')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
            --localstatedir=/var
    make
}

package() {
    cd ${srcdir}/${pkgname}-${pkgver}
    make DESTDIR=${pkgdir} install

    # 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 {} \;
}