blob: ad08915dc4d1867290d106fbfdd75fc1f31bf6ca (
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, libungif, ctags, libpng
5
6 name=emacs
7 version=24.1
8 release=2
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 --without-makeinfo
22
23 make
24 make DESTDIR=$PKG install
25
26 rm -rf $PKG/usr/share/info
27 find $PKG/usr/share/emacs -name "*.el.gz" | while read file; do
28 [ -f ${file%.gz}c ] && rm -f $file
29 done
30
31 rm $PKG/usr/bin/emacs-$version
32 rm $PKG/usr/{bin/{c,e}tags,man/man1/{c,e}tags.1.gz}
33
34 for i in $(< $SRC/$name-$version-etc-blacklist); do
35 rm -r $PKG/usr/share/emacs/$version/etc/$i
36 done
37
38 chown -R root:root $PKG
39 }
|