summaryrefslogtreecommitdiff
path: root/community/emacs-nox/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-03-16 10:34:49 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-03-16 10:34:49 +0100
commitf24ad15758f8eebcc46cb0c210f888491869d3f0 (patch)
tree85c74dd33e056502de7a306161d28f5b15b274c2 /community/emacs-nox/PKGBUILD
parent5f4568c7f7ba204bc047d2c74a5721f23024b339 (diff)
parent636ce8849a9c82c1787c2919ffcfe6685cb799d3 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/chmsee/PKGBUILD community/darkstat/PKGBUILD community/dbmail/PKGBUILD community/dvdisaster/PKGBUILD community/epic4/PKGBUILD community/fb-client/PKGBUILD community/fcrackzip/PKGBUILD community/fdupes/PKGBUILD community/flobopuyo/PKGBUILD community/intel-tbb/PKGBUILD community/openbsd-netcat/PKGBUILD community/sunpinyin/PKGBUILD community/tinc/PKGBUILD community/uudeview/PKGBUILD community/zathura/PKGBUILD core/libedit/PKGBUILD core/mkinitcpio-busybox/PKGBUILD core/openssl/PKGBUILD core/util-linux/PKGBUILD extra/lua/PKGBUILD gnome-unstable/pidgin/PKGBUILD testing/openssl/PKGBUILD testing/sudo/PKGBUILD testing/udev/PKGBUILD testing/util-linux/PKGBUILD
Diffstat (limited to 'community/emacs-nox/PKGBUILD')
-rw-r--r--community/emacs-nox/PKGBUILD31
1 files changed, 18 insertions, 13 deletions
diff --git a/community/emacs-nox/PKGBUILD b/community/emacs-nox/PKGBUILD
index f9798663b..1ec9cf40f 100644
--- a/community/emacs-nox/PKGBUILD
+++ b/community/emacs-nox/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 43323 2011-03-24 20:49:58Z jlichtblau $
+# $Id: PKGBUILD 67599 2012-03-13 13:43:30Z lcarlier $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Chris Brannon <cmbrannon@cox.net>
pkgname=emacs-nox
-pkgver=23.3
-pkgrel=2
+pkgver=23.4
+pkgrel=1
pkgdesc="The Emacs Editor, without X11 support"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/emacs/emacs.html"
@@ -17,38 +17,43 @@ options=('docs')
changelog=$pkgname.changelog
install=$pkgname.install
source=(ftp://ftp.gnu.org/gnu/emacs/emacs-${pkgver}.tar.gz)
-sha256sums=('0038248a4299708a8717f2f5ba48f1c0f15e95ffc5fcfb08cbe5c3146757e34c')
+sha256sums=('b9a2b8434052771f797d2032772eba862ff9aa143029efc72295170607289c18')
build() {
cd ${srcdir}/emacs-$pkgver
-#gcc 4.5 Workaround: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43904
+ # 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
+ # 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
+ # mv newepaths.h src/epaths.h
make libexecdir=/usr/lib archlibdir=/usr/lib/emacs/${pkgver}
+}
+
+package() {
+ cd ${srcdir}/emacs-$pkgver
+
make prefix=${pkgdir}/usr libexecdir=${pkgdir}/usr/lib \
archlibdir=${pkgdir}/usr/lib/emacs/${pkgver} install
-#remove conflict with ctags package
+ # 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
+ # 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
+ # fix user/root permissions on usr/share files
find ${pkgdir}/usr/share/emacs/$pkgver -exec chown root.root {} \;
-#remove empty files
+ # remove empty files
rm -rf ${pkgdir}/usr/var
-#remove .desktop file and icons
+ # 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
+ # 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/*
}