1 # Maintainer: Bernardo Barros <bernardobarros@gmail.com>
2 # Contributor: Neil Santos <nsantos16+aur@gmail.com>
7 pkgdesc='Emacs from official Bazaar repository, GTK3 toolkit'
9 url='http://www.gnu.org/software/emacs/'
11 depends=('dbus-core' 'libpng' 'libtiff' 'librsvg' 'giflib' 'gtk3' 'libxpm' 'libjpeg>=7' 'hicolor-icon-theme')
12 makedepends=('bzr' 'pkgconfig' 'texinfo' 'gpm')
13 provides=('emacs=$pkgver')
14 conflicts=('emacs' 'emacs-nox' 'emacs-otf' 'emacs-cvs' 'emacs-git')
17 _bzrtrunk='http://bzr.savannah.gnu.org/r/emacs/trunk'
22 msg "Connecting to Savannah..."
24 if [[ -d $_bzrmod/.bzr ]]; then
25 (cd $_bzrmod && bzr update -v && cd ..)
26 msg "Local checkout updated or server timeout"
28 bzr co --lightweight -v $_bzrtrunk $_bzrmod
29 msg "Checkout done or server timeout"
32 cp -urT $_bzrmod/ ${_bzrmod}-build
37 msg "Starting make..."
41 ./configure --prefix=/usr \
43 --localstatedir=/var \
44 --libexecdir=/usr/lib \
56 cd $srcdir/$_bzrmod-build
57 make DESTDIR=$pkgdir install
59 # remove conflict with ctags packages
60 mv $pkgdir/usr/bin/{ctags,ctags.emacs}
61 mv $pkgdir/usr/bin/{etags,etags.emacs}
62 mv $pkgdir/usr/share/man/man1/{etags.1.gz,etags.emacs.1.gz}
63 mv $pkgdir/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1.gz}
65 # fix user/root permissions on usr/share files
66 find $pkgdir/usr/share/emacs/24* -exec chown root.root {} \;
67 # fix perms on /var/games
68 chmod 775 $pkgdir/var/games
69 chmod 775 $pkgdir/var/games/emacs
70 chmod 664 $pkgdir/var/games/emacs/*
71 chown -R root:games $pkgdir/var/games