opt/emacs/Pkgfile

32 lines
696 B
Plaintext
Raw Normal View History

2006-04-09 06:33:03 +02:00
# Description: an extensible, customizable, self-documenting real-time display editor
# URL: http://www.gnu.org/software/emacs/
2007-06-04 20:27:39 +02:00
# Maintainer: Antti Nykanen, aon at iki dot fi
2007-03-25 16:35:35 +02:00
# Depends on: xorg, libtiff
2006-02-23 16:26:10 +01:00
name=emacs
2007-06-04 20:27:39 +02:00
version=22.1
2006-02-23 16:26:10 +01:00
release=1
2006-10-13 15:50:49 +02:00
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
2006-02-23 16:26:10 +01:00
build() {
2007-06-04 20:27:39 +02:00
cd $name-$version
./configure \
--prefix=/usr \
2006-02-23 16:26:10 +01:00
--libexecdir=/usr/lib \
2007-06-04 20:27:39 +02:00
--mandir=/usr/man \
--localstatedir=/usr/lib/emacs/$version \
2006-02-23 16:26:10 +01:00
--with-x
2007-06-04 20:27:39 +02:00
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/info
find $PKG/usr/share/emacs -name "*.el.gz" | while read file; do
[ -f ${file%.gz}c ] && rm -f $file
done
rm $PKG/usr/bin/emacs-$version
chown -R root:root $PKG
2006-02-23 16:26:10 +01:00
}