diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/emacs-nox | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/emacs-nox')
-rw-r--r-- | community/emacs-nox/PKGBUILD | 46 | ||||
-rw-r--r-- | community/emacs-nox/emacs-nox.changelog | 29 | ||||
-rw-r--r-- | community/emacs-nox/emacs-nox.install | 25 |
3 files changed, 100 insertions, 0 deletions
diff --git a/community/emacs-nox/PKGBUILD b/community/emacs-nox/PKGBUILD new file mode 100644 index 000000000..75cb2ecb3 --- /dev/null +++ b/community/emacs-nox/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 88621 2013-04-20 17:17:19Z jlichtblau $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Chris Brannon <cmbrannon@cox.net> + +pkgname=emacs-nox +pkgver=24.3 +pkgrel=1 +pkgdesc="The extensible, customizable, self-documenting real-time display editor, without X11 support" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/emacs/emacs.html" +license=('GPL3') +depends=('dbus-core' 'ncurses' 'perl') +provides=('emacs') +conflicts=('emacs') +changelog=$pkgname.changelog +install=$pkgname.install +source=(ftp://ftp.gnu.org/gnu/emacs/emacs-${pkgver}.tar.gz) +sha256sums=('0098ca3204813d69cd8412045ba33e8701fa2062f4bff56bedafc064979eef41') + +build() { + cd ${srcdir}/emacs-$pkgver + + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \ + --localstatedir=/var --without-x --without-sound + make +} + +package() { + cd ${srcdir}/emacs-$pkgver + make DESTDIR=${pkgdir} install + + # remove conflict with ctags package + mv ${pkgdir}/usr/bin/{ctags,ctags.emacs} + mv ${pkgdir}/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1} + # remove conflict with texinfo + rm "$pkgdir"/usr/share/info/info.info.gz + # fix user/root permissions on usr/share files + find ${pkgdir}/usr/share/emacs/$pkgver -exec chown root.root {} \; + # remove .desktop file and icons + rm -rf ${pkgdir}/usr/share/{applications,icons} + # fix perms on /var/games + chmod 775 ${pkgdir}/var/games + chmod 775 ${pkgdir}/var/games/emacs + chmod 664 ${pkgdir}/var/games/emacs/* + chown -R root:games ${pkgdir}/var/games +} diff --git a/community/emacs-nox/emacs-nox.changelog b/community/emacs-nox/emacs-nox.changelog new file mode 100644 index 000000000..ffae307fa --- /dev/null +++ b/community/emacs-nox/emacs-nox.changelog @@ -0,0 +1,29 @@ +2013-04-20 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * emacs-nox 24.3-1 + +2012-09-12 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * emacs-nox 24.2-1 + +2012-06-12 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * emacs-nox 24.1-1 + +2011-03-13 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * emacs-nox 23.3-1 + +2010-05-12 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * Update to major release 23.2 + +2010-03-17 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * 23.1-2 - fix for FS#18688 - [emacs-nox] compiled with SSE2 instructions + +2009-12-18 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * Update to major release 23.1 + +2008-11-01 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * New PKGBUILD/install method provided by Chris Brannon <cmbrannon@cox.net> + * => Added an install script + * => Info files are now installed using install-info + +2008-09-08 Jaroslav Lichtblau <tu@dragonlord.cz> + * Package moved to [community] + * Update to major release 22.3 diff --git a/community/emacs-nox/emacs-nox.install b/community/emacs-nox/emacs-nox.install new file mode 100644 index 000000000..06dc781ee --- /dev/null +++ b/community/emacs-nox/emacs-nox.install @@ -0,0 +1,25 @@ +INFO_DIR=usr/share/info + +INFO_FILES=(ada-mode auth autotype bovine calc ccmode cl dbus dired-x ebrowse +ede ediff edt efaq eieio eintr elisp emacs emacs-gnutls emacs-mime epa erc ert eshell eudc flymake +forms gnus htmlfontify idlwave mairix-el message mh-e newsticker nxml-mode +org pcl-cvs pgg rcirc reftex remember sasl sc semantic ses sieve smtpmail +speedbar srecode tramp url vip viper widget wisent woman) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for f in ${INFO_FILES[@]}; do + install-info ${INFO_DIR}/$f.info.gz ${INFO_DIR}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for f in ${INFO_FILES[@]}; do + install-info --delete ${INFO_DIR}/$f.info.gz ${INFO_DIR}/dir 2> /dev/null + done +} |