1 # Maintainer: Bernardo Barros <bernardobarros@gmail.com>
2 # Contributor: Neil Santos <nsantos16+aur@gmail.com>
4 pkgname=emacs-lucid-bzr
7 pkgdesc='Emacs from official Bazaar repository, lucid toolkit'
9 url='http://www.gnu.org/software/emacs/'
11 depends=('dbus-core' 'libpng' 'libtiff' 'librsvg' 'giflib' 'libxpm' 'libjpeg>=7' 'hicolor-icon-theme')
13 makedepends=('bzr' 'pkgconfig' 'texinfo' 'gpm')
14 provides=('emacs=$pkgver')
15 conflicts=('emacs' 'emacs-nox' 'emacs-otf' 'emacs-cvs' 'emacs-git')
16 install=$pkgname.install
18 _bzrtrunk='http://bzr.savannah.gnu.org/r/emacs/trunk'
23 msg "Connecting to Savannah..."
25 if [[ -d $_bzrmod/.bzr ]]; then
26 (cd $_bzrmod && bzr update -v && cd ..)
27 msg "Local checkout updated or server timeout"
29 bzr co --lightweight -v $_bzrtrunk $_bzrmod
30 msg "Checkout done or server timeout"
33 cp -urT $_bzrmod/ ${_bzrmod}-build
38 msg "Starting make..."
40 ./autogen.sh && ./configure --prefix=/usr \
42 --localstatedir=/var \
43 --libexecdir=/usr/lib \
46 --with-x-toolkit=lucid
52 make DESTDIR=${pkgdir} install
55 mv $pkgdir/usr/bin/{ctags,ctags.emacs}
56 mv $pkgdir/usr/bin/{etags,etags.emacs}
57 mv $pkgdir${mandir}/man1/{etags.1,etags.emacs.1}.gz
58 mv $pkgdir${mandir}/man1/{ctags.1,ctags.emacs.1}.gz
60 find $pkgdir/usr/share/emacs -type d -exec chmod 755 {} \;
61 find $pkgdir/usr/share/emacs -exec chown root.root {} \;
62 chmod 775 $pkgdir/var/games
63 chmod 775 $pkgdir/var/games/emacs
64 chmod 664 $pkgdir/var/games/emacs/*
65 chown -R root:50 $pkgdir/var/games
67 rm $pkgdir/usr/share/info/dir