summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Whitt2017-06-05 06:51:22 -0400
committerAlex Whitt2017-06-05 06:51:22 -0400
commit0f25b35af3f9d62eb3046b58fdf80cca36d1f410 (patch)
tree35b126e24b39959569f25665a5751f1bbb7c2248
downloadaur-0f25b35af3f9d62eb3046b58fdf80cca36d1f410.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD30
-rw-r--r--emacs-lispy.install21
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2866f56e73c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Mon Jun 5 10:49:37 UTC 2017
+pkgbase = emacs-lispy
+ pkgdesc = Short and sweet LISP editing
+ pkgver = 0.26.0
+ pkgrel = 1
+ url = https://github.com/abo-abo/lispy
+ install = emacs-lispy.install
+ arch = any
+ license = GPL3
+ depends = emacs
+ depends = emacs-avy
+ depends = emacs-iedit
+ depends = emacs-swiper
+ depends = emacs-org-mode
+ source = emacs-lispy-0.26.0.tar.gz::https://github.com/abo-abo/lispy/archive/0.26.0.tar.gz
+ sha256sums = f463c5245d5f58b9df4952dacf745a28b023da7b9da5c4e92fbcaacd4a7af195
+
+pkgname = emacs-lispy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f0c372c9348
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>
+
+_pkgsrcname=lispy
+_pkgmaintainer=abo-abo
+_pkgdestdirname=lispy
+_versionprefix=
+pkgver=0.26.0
+pkgrel=1
+pkgdesc="Short and sweet LISP editing"
+pkgname=emacs-${_pkgdestdirname}
+arch=(any)
+url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}"
+license=('GPL3')
+depends=('emacs' 'emacs-avy' 'emacs-iedit' 'emacs-swiper' 'emacs-org-mode')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz")
+sha256sums=('f463c5245d5f58b9df4952dacf745a28b023da7b9da5c4e92fbcaacd4a7af195')
+install=${pkgname}.install
+
+build() {
+ cd "${srcdir}/${_pkgsrcname}-${pkgver}"
+ rm -f lispy-test.el
+ rm -f elpa.el
+ 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-lispy.install b/emacs-lispy.install
new file mode 100644
index 00000000000..f7aa82c2efc
--- /dev/null
+++ b/emacs-lispy.install
@@ -0,0 +1,21 @@
+post_install () {
+
+cat << EOF
+
+==> Add this code to your .emacs file to use the mode:
+
+(require 'lispy)
+(add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1)))
+
+==> Or do the above with use-package:
+
+(use-package lispy
+ :config
+ (add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1))))
+
+EOF
+}
+
+post_upgrade () {
+ post_install $1
+}