blob: 2b50a49e7a09b36bf770ad39f543491524e06991 (
plain)
1 # Description: an extensible, customizable, self-documenting real-time display editor
2 # URL: http://www.gnu.org/software/emacs/
3 # Maintainer: Antti Nykanen, aon at iki dot fi
4 # Depends on: xorg, libtiff, ctags
5
6 name=emacs
7 version=22.3
8 release=1
9 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz
10 $name-$version-etc-blacklist)
11
12 build() {
13 cd $name-$version
14
15 ./configure \
16 --prefix=/usr \
17 --libexecdir=/usr/lib \
18 --mandir=/usr/man \
19 --localstatedir=/usr/lib/emacs/$version \
20 --with-x
21
22 make
23 make DESTDIR=$PKG install
24
25 rm -rf $PKG/usr/share/info
26 find $PKG/usr/share/emacs -name "*.el.gz" | while read file; do
27 [ -f ${file%.gz}c ] && rm -f $file
28 done
29
30 rm -f $PKG/usr/bin/emacs-$version
31 rm -f $PKG/usr/{bin/{c,e}tags,man/man1/{c,e}tags.1}
32 rm -f $PKG/usr/share/emacs/$version/lisp/{COPYING,{,term/}README}
33
34 for i in $(< $SRC/$name-$version-etc-blacklist); do
35 rm -rf $PKG/usr/share/emacs/$version/etc/$i
36 done
37
38 chown -R root:root $PKG
39 }
|