Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.53 KB | None | 0 0
  1. # $Id$
  2. # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
  3. # Contributor: Renchi Raju <renchi@green.tam.uiuc.edu>
  4.  
  5. pkgname=emacs
  6. pkgver=25.1
  7. pkgrel=4
  8. pkgdesc="The extensible, customizable, self-documenting real-time display editor"
  9. arch=('i686' 'x86_64')
  10. url="http://www.gnu.org/software/emacs/emacs.html"
  11. license=('GPL3')
  12. depends=('gpm' 'libotf' 'm17n-lib' 'gtk2' 'hicolor-icon-theme' 'gconf' 'desktop-file-utils' 'alsa-lib' 'gnutls')
  13. source=(ftp://ftp.gnu.org/gnu/emacs/$pkgname-$pkgver.tar.xz)
  14. md5sums=( 'SKIP' )
  15.  
  16. build() {
  17.   cd "$srcdir"/$pkgname-$pkgver
  18.   export REL_ALLOC=no
  19.   export ac_cv_lib_gif_EGifPutExtensionLast=yes
  20.   ./configure \
  21.     --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var \
  22.     --program-transform-name='s/^ctags$/ctags.emacs/' \
  23.     --without-all --disable-acl --with-xml2 --with-zlib --with-gnutls \
  24.     --with-dbus --with-xft --with-libotf --with-xim --with-m17n-flt \
  25.     --without-gconf --without-sound --with-x-toolkit=gtk2
  26.   make
  27. }
  28.  
  29. package() {
  30.   cd "$srcdir"/$pkgname-$pkgver
  31.   make DESTDIR="$pkgdir" install
  32.  
  33.   # remove conflict with ctags package
  34.   # mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
  35.   # mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
  36.  
  37.   # fix user/root permissions on usr/share files
  38.   find "$pkgdir"/usr/share/emacs/$pkgver -exec chown root:root {} \;
  39.   # fix perms on /var/games
  40.   chmod 775 "$pkgdir"/var/games
  41.   chmod 775 "$pkgdir"/var/games/emacs
  42.   chmod 664 "$pkgdir"/var/games/emacs/*
  43.   chown -R root:games "$pkgdir"/var/games
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement