diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/emacs-nox |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/emacs-nox')
-rw-r--r-- | community/emacs-nox/PKGBUILD | 54 | ||||
-rw-r--r-- | community/emacs-nox/emacs-nox.changelog | 20 | ||||
-rw-r--r-- | community/emacs-nox/emacs-nox.install | 21 |
3 files changed, 95 insertions, 0 deletions
diff --git a/community/emacs-nox/PKGBUILD b/community/emacs-nox/PKGBUILD new file mode 100644 index 000000000..56333d367 --- /dev/null +++ b/community/emacs-nox/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 43323 2011-03-24 20:49:58Z jlichtblau $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Chris Brannon <cmbrannon@cox.net> + +pkgname=emacs-nox +pkgver=23.3 +pkgrel=2 +pkgdesc="The Emacs Editor, without X11 support" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/emacs/emacs.html" +license=('GPL') +replaces=('cedet') +depends=('dbus-core' 'ncurses' 'perl') +provides=('emacs') +conflicts=('emacs' 'emacs-cvs') +options=('docs') +changelog=$pkgname.changelog +install=$pkgname.install +source=(ftp://ftp.gnu.org/gnu/emacs/emacs-${pkgver}.tar.gz) +sha256sums=('0038248a4299708a8717f2f5ba48f1c0f15e95ffc5fcfb08cbe5c3146757e34c') + +build() { + cd ${srcdir}/emacs-$pkgver + +#gcc 4.5 Workaround: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43904 + CFLAGS="${CFLAGS} -fno-optimize-sibling-calls"\ + ./configure --prefix=/usr --without-x --without-sound + +#we don't want to use /usr/libexec + sed -i "s|\"/usr/libexec/emacs.*$|\"/usr/lib/emacs/$pkgver\"|g" src/epaths.h +# mv newepaths.h src/epaths.h || return 1 + + make libexecdir=/usr/lib archlibdir=/usr/lib/emacs/${pkgver} + make prefix=${pkgdir}/usr libexecdir=${pkgdir}/usr/lib \ + archlibdir=${pkgdir}/usr/lib/emacs/${pkgver} install + +#remove conflict with ctags package + mv ${pkgdir}/usr/bin/{ctags,ctags.emacs} + mv ${pkgdir}/usr/bin/{etags,etags.emacs} + mv ${pkgdir}/usr/share/man/man1/{etags.1,etags.emacs.1} + mv ${pkgdir}/usr/share/man/man1/{ctags.1,ctags.emacs.1} +#fix all the 777 perms on directories + find ${pkgdir}/usr/share/emacs/$pkgver -type d -exec chmod 755 {} \; +#fix user/root permissions on usr/share files + find ${pkgdir}/usr/share/emacs/$pkgver -exec chown root.root {} \; +#remove empty files + rm -rf ${pkgdir}/usr/var +#remove .desktop file and icons + rm -rf ${pkgdir}/usr/share/{applications,icons} + +#get rid of the package's info directory, install-info adds entries for us at install-time + rm ${pkgdir}/usr/share/info/dir + gzip -9nf ${pkgdir}/usr/share/info/* +} diff --git a/community/emacs-nox/emacs-nox.changelog b/community/emacs-nox/emacs-nox.changelog new file mode 100644 index 000000000..1ed424b05 --- /dev/null +++ b/community/emacs-nox/emacs-nox.changelog @@ -0,0 +1,20 @@ +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..ea8630090 --- /dev/null +++ b/community/emacs-nox/emacs-nox.install @@ -0,0 +1,21 @@ +info_dir=/usr/share/info +info_files=(ada-mode autotype calc ccmode cl dired-x ebrowse +ediff efaq eintr elisp emacs emacs-mime erc eshell eudc flymake forms +gnus idlwave info message mh-e newsticker org pcl-cvs pgg rcirc reftex +sc ses sieve smtpmail speedbar tramp url vip viper widget woman) + +post_install() { + for f in ${info_files[@]}; do + install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for f in ${info_files[@]}; do + install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} |