summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Whitt2017-08-04 15:51:37 -0400
committerAlex Whitt2017-08-04 15:51:37 -0400
commit4f5a8c90551812d7500947125a619fd6610ffd40 (patch)
treed6b31f624051fb4dcc003c0cfaf5f8722ab36a44
downloadaur-4f5a8c90551812d7500947125a619fd6610ffd40.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD28
-rw-r--r--emacs-git-timemachine.install16
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b7fca200654
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Fri Aug 4 19:49:14 UTC 2017
+pkgbase = emacs-git-timemachine
+ pkgdesc = Step through historic versions of git controlled file using everyone's favourite editor
+ pkgver = 3.0
+ pkgrel = 1
+ url = https://github.com/pidu/git-timemachine
+ install = emacs-git-timemachine.install
+ arch = any
+ license = GPL3
+ depends = emacs
+ source = emacs-git-timemachine-3.0.tar.gz::https://github.com/pidu/git-timemachine/archive/3.0.tar.gz
+ sha256sums = 4ac73d87d6d5fbee96fad5f4f6cdf36b94d6ee227b80cdbd96363b9e4c068fd0
+
+pkgname = emacs-git-timemachine
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eb447567f9f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>
+
+_pkgsrcname=git-timemachine
+_pkgmaintainer=pidu
+_pkgdestdirname=git-timemachine
+_versionprefix=
+pkgver=3.0
+pkgrel=1
+pkgdesc="Step through historic versions of git controlled file using everyone's favourite editor"
+pkgname=emacs-${_pkgdestdirname}
+arch=(any)
+url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}"
+license=('GPL3')
+depends=('emacs')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz")
+sha256sums=('4ac73d87d6d5fbee96fad5f4f6cdf36b94d6ee227b80cdbd96363b9e4c068fd0')
+install=${pkgname}.install
+
+build() {
+ cd "${srcdir}/${_pkgsrcname}-${pkgver}"
+ emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
+}
+
+package() {
+ cd "${srcdir}/${_pkgsrcname}-${pkgver}"
+ mkdir -p "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
+ install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
+}
diff --git a/emacs-git-timemachine.install b/emacs-git-timemachine.install
new file mode 100644
index 00000000000..d7d7414544d
--- /dev/null
+++ b/emacs-git-timemachine.install
@@ -0,0 +1,16 @@
+post_install () {
+
+cat << EOF
+
+==> Add this code to your .emacs file to use the mode:
+
+(require 'git-timemachine)
+
+(use-package git-timemachine)
+
+EOF
+}
+
+post_upgrade () {
+ post_install $1
+}