diff options
author | Christian E. Hopps | 2016-01-12 02:59:45 -0500 |
---|---|---|
committer | Christian E. Hopps | 2016-01-12 02:59:45 -0500 |
commit | e6bf46db6951b846f6a5c91bb5ff3b32b92d6dc5 (patch) | |
tree | 259777a4bc06a39e7bd08399bf6d25b4cefcc9e0 | |
download | aur-e6bf46db6951b846f6a5c91bb5ff3b32b92d6dc5.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 54 | ||||
-rw-r--r-- | emacs.install | 32 |
3 files changed, 121 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..26a951af25bd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +# Generated by mksrcinfo v8 +# Tue Jan 12 07:50:19 UTC 2016 +pkgbase = emacs-24bit + pkgdesc = The extensible, customizable, self-documenting real-time display editor + pkgver = 24.5 + pkgrel = 2 + url = http://www.gnu.org/software/emacs/emacs.html + install = emacs.install + arch = i686 + arch = x86_64 + license = GPL3 + depends = librsvg + depends = gpm + depends = giflib + depends = gmime + depends = libxpm + depends = libotf + depends = m17n-lib + depends = gtk3 + depends = hicolor-icon-theme + depends = gconf + depends = desktop-file-utils + depends = alsa-lib + depends = imagemagick + depends = gnutls + conflicts = emacs + source = ftp://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz + source = ftp://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz.sig + source = https://gist.githubusercontent.com/choppsv1/e8198df70cb1778b04d6/raw/99b9c436c5b7dc96f2d4645b7b2cdeec614f7698/emacs-24.5-24bit.diff + md5sums = 50560ee00bac9bb9cf0e822764cd0832 + md5sums = SKIP + md5sums = 426a9b2993fe0f834cd2740987d67dfe + +pkgname = emacs-24bit + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..980fbe14f53b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# $Id$ +# Contributor: Christian Hopps <chopps@gmail.com> +# +# To enable 24 bit color in the terminal one must define the environment +# variable ITERM_24BIT=1 or KONSOLE_DBUS_SESSION=1 +# +# Derived from standard emacs PKGBUILD + +pkgname=emacs-24bit +pkgver=24.5 +pkgrel=2 +pkgdesc="The extensible, customizable, self-documenting real-time display editor" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/emacs/emacs.html" +license=('GPL3') +depends=('librsvg' 'gpm' 'giflib' 'gmime' 'libxpm' 'libotf' 'm17n-lib' 'gtk3' 'hicolor-icon-theme' 'gconf' 'desktop-file-utils' 'alsa-lib' 'imagemagick' 'gnutls') +install=emacs.install +validpgpkeys=('BE216115' 'B29426DEFB07724C3C35E5D36592E9A3A0B0F199' '28D3BED851FDF3AB57FEF93C233587A47C207910') +source=(ftp://ftp.gnu.org/gnu/emacs/emacs-$pkgver.tar.xz{,.sig} + https://gist.githubusercontent.com/choppsv1/e8198df70cb1778b04d6/raw/99b9c436c5b7dc96f2d4645b7b2cdeec614f7698/emacs-24.5-24bit.diff) +md5sums=('50560ee00bac9bb9cf0e822764cd0832' + 'SKIP' + '426a9b2993fe0f834cd2740987d67dfe') +conflicts=(emacs) + +prepare() { + cd "$srcdir/emacs-${pkgver/_/}" + patch -Np1 -i ../emacs-24.5-24bit.diff +} + +build() { + cd "$srcdir"/emacs-$pkgver + ac_cv_lib_gif_EGifPutExtensionLast=yes ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \ + --localstatedir=/var --with-x-toolkit=gtk3 --with-xft + 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 {} \; + # 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/emacs.install b/emacs.install new file mode 100644 index 000000000000..6712f44bab84 --- /dev/null +++ b/emacs.install @@ -0,0 +1,32 @@ +ICON_PATH=usr/share/icons/hicolor +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() { + gtk-update-icon-cache -q -t -f ${ICON_PATH} + update-desktop-database -q + + [[ -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() { + gtk-update-icon-cache -q -t -f ${ICON_PATH} + update-desktop-database -q + + [[ -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 +} |