From d752650652eab21d5661a91295f54012ce830b5a Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Fri, 2 Feb 2018 16:26:15 +0100 Subject: pcr/emacs-magit: added in favour of emacs-magit-git --- pcr/emacs-magit/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ pcr/emacs-magit/emacs-magit.install | 30 ++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 pcr/emacs-magit/PKGBUILD create mode 100644 pcr/emacs-magit/emacs-magit.install (limited to 'pcr/emacs-magit') diff --git a/pcr/emacs-magit/PKGBUILD b/pcr/emacs-magit/PKGBUILD new file mode 100644 index 000000000..8dcf0785c --- /dev/null +++ b/pcr/emacs-magit/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer (AUR): Esben Haabendal +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres + +# parabola changes and rationale: +# - added replaces for previous pkgname 'emacs-magit-git' (2018-02-02) + +pkgname=emacs-magit +pkgver=2.11.0 +pkgrel=1 +pkgdesc="It's Magit! A Emacs mode for Git." +arch=('any') +_github_org="magit" +_github_repo="magit" +url="http://github.com/${_github_org}/${_github_repo}" +license=('GPL3') +depends=('emacs' 'git' 'emacs-dash>=2.13.0' 'emacs-with-editor-git>=2.6.0') +provides=('emacs-magit' 'emacs-magit-popup') +conflicts=('emacs-magit-git' 'emacs-magit-popup') +replaces=('emacs-magit-git') +install="${pkgname}.install" +source=("git+https://github.com/${_github_org}/${_github_repo}.git#tag=$pkgver") +md5sums=('SKIP') + +build() { + cd "$srcdir/${_github_repo}" + make LOAD_PATH="-L /usr/share/emacs/site-lisp -L /usr/share/emacs/site-lisp/dash -L ${srcdir}/magit/lisp" \ + lisp docs +} + +package() { + cd "$srcdir/${_github_repo}" + make PREFIX="/usr" DESTDIR="${pkgdir}" install +} diff --git a/pcr/emacs-magit/emacs-magit.install b/pcr/emacs-magit/emacs-magit.install new file mode 100644 index 000000000..a9904739e --- /dev/null +++ b/pcr/emacs-magit/emacs-magit.install @@ -0,0 +1,30 @@ +infodir=/usr/share/info +filelist=(magit.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done + + cat << EOF +==> In order to use magit, add the following lines to your ~/.emacs file: + +(autoload 'magit-status "magit" nil t) +EOF +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} + +op=$1 +shift +$op $* -- cgit v1.2.3