1 # Build recipe for emacs.
3 # Copyright (C) 2020 Kevin "The Nuclear" Bloom, <kevin.bloom@posteo.net>
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # Based on recipes written by Mateus P. Rodrigues, <mprodrigues@dragora.org>
18 # and Matias Fonzo, <selk@dragora.org>.
24 tarname=${program}-${version}.tar.xz
25 # srcdir=${program}-${version} # Not needed in major releases
28 fetch=http://ftp.gnu.org/gnu/emacs/$tarname
31 emacs - The Emacs text editor.
33 GNU Emacs is an extensible, customizable text editor and more.
34 At its core is an interpreter for Emacs Lisp, a dialect of the
35 Lisp programming language with extensions to support text
39 homepage=http://www.gnu.org/software/emacs/
42 # Source documentation
43 docs="BUGS CONTRIBUTE COPYING ChangeLog* README"
44 docsdir="${docdir}/${program}-${version}"
50 unpack "${tardir}/$tarname"
54 ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
56 --libdir=/usr/lib${libSuffix} \
61 --build="$(cc -dumpmachine)"
64 make -j${jobs} DESTDIR="$destdir" install
66 # Delete index file for the package
67 if test -d "${destdir}/$infodir"
69 rm -f "${destdir}/${infodir}/dir"
73 mkdir -p "${destdir}${docsdir}"
79 cp -p $file "${destdir}${docsdir}"