From 6a1dd1ce906fc523fa4b775088605de55ad9a372 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Fri, 2 Feb 2018 16:24:46 +0100 Subject: pcr/emacs-with-editor-git: added --- pcr/emacs-with-editor-git/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pcr/emacs-with-editor-git/PKGBUILD (limited to 'pcr/emacs-with-editor-git/PKGBUILD') diff --git a/pcr/emacs-with-editor-git/PKGBUILD b/pcr/emacs-with-editor-git/PKGBUILD new file mode 100644 index 000000000..01aad15e5 --- /dev/null +++ b/pcr/emacs-with-editor-git/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer (AUR): Esben Haabendal + +# parabola changes and rationale: +# - added missing makedepends: git + +pkgname=emacs-with-editor-git +_github_org="magit" +_github_repo="with-editor" +pkgver=2.7.1.r0.04d59d6 +pkgrel=1 +pkgdesc="Use the Emacsclient as the $EDITOR of child processes" +arch=('any') +url="http://github.com/${_github_org}/${_github_repo}" +license=('GPL3') +depends=('emacs>=24.4') +makedepends=('git') +provides=('emacs-with-editor') +conflicts=('emacs-with-editor') +install="${pkgname}.install" +source=("git+https://github.com/${_github_org}/${_github_repo}.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${_github_repo}" + printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')" +} + +build() { + cd "$srcdir/${_github_repo}" + unset EMACS + make EFLAGS="-L /usr/share/emacs/site-lisp -L ${srcdir}/${_gitrepo}/lisp" \ + lisp info +} + +package() { + cd "$srcdir/${_github_repo}" + mkdir -p ${pkgdir}/usr/share/emacs/site-lisp + install -m 644 with-editor.{el,elc} ${pkgdir}/usr/share/emacs/site-lisp + mkdir -p ${pkgdir}/usr/share/info + install -m 644 with-editor.info ${pkgdir}/usr/share/info/ +} -- cgit v1.2.3