1 # $Id: PKGBUILD 48124 2009-07-31 17:27:47Z juergen $
2 # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
3 # Contributor: Renchi Raju <renchi@green.tam.uiuc.edu>
7 pkgdesc="The Emacs Editor"
9 url="http://www.gnu.org/software/emacs/emacs.html"
12 depends=('dbus-core' 'librsvg' 'gpm' 'giflib' 'libtiff' 'libxpm' 'libjpeg7' 'libpng12' 'gtk2' 'texinfo' 'hicolor-icon-theme')
13 source=(ftp://ftp.gnu.org/gnu/emacs/$pkgname-$pkgver.tar.gz emacs.desktop)
14 md5sums=('aa8ba34f548cd78b35914ae5a7bb87eb'
15 '8af038d2ba4561271e935bb444ceb4e3')
19 cd $startdir/src/$pkgname-$pkgver
21 ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
22 --localstatedir=/var --mandir=${mandir} --without-sound -with-x-toolkit=gtk
24 make DESTDIR=$startdir/pkg install || return 1
26 # remove conflict with ctags package
27 mv $startdir/pkg/usr/bin/{ctags,ctags.emacs} || return 1
28 mv $startdir/pkg/usr/bin/{etags,etags.emacs} || return 1
29 mv $startdir/pkg${mandir}/man1/{etags.1,etags.emacs.1} || return 1
30 mv $startdir/pkg${mandir}/man1/{ctags.1,ctags.emacs.1} || return 1
31 # fix all the 777 perms on directories
32 find $startdir/pkg/usr/share/emacs/$pkgver -type d -exec chmod 755 {} \;
33 # fix user/root permissions on usr/share files
34 find $startdir/pkg/usr/share/emacs/$pkgver -exec chown root.root {} \;
35 # fix perms on /var/games
36 chmod 775 ${startdir}/pkg/var/games
37 chmod 775 ${startdir}/pkg/var/games/emacs
38 chmod 664 ${startdir}/pkg/var/games/emacs/*
39 chown -R root:50 ${startdir}/pkg/var/games
43 rm $startdir/pkg/usr/share/info/dir
44 gzip -9nf $startdir/pkg/usr/share/info/*