summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Whitt2017-05-10 16:58:44 -0400
committerAlex Whitt2017-05-10 16:58:44 -0400
commita5a3e8f23e0ae099867d8315766d9ab7a5d9eb3f (patch)
treee20bf8f21ae1e4749e314d0c547338de5dfdd321
downloadaur-a5a3e8f23e0ae099867d8315766d9ab7a5d9eb3f.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD29
-rw-r--r--emacs-hydra.install18
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b7066e92a9f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Wed May 10 20:58:16 UTC 2017
+pkgbase = emacs-hydra
+ pkgdesc = Make Emacs bindings that stick around
+ pkgver = 0.13.0
+ pkgrel = 1
+ url = https://github.com/abo-abo/hydra
+ install = emacs-hydra.install
+ arch = any
+ license = GPL3
+ depends = emacs
+ optdepends = emacs-org-mode: Comes with an org-mode export widget
+ source = emacs-hydra-0.13.0.tar.gz::https://github.com/abo-abo/hydra/archive/0.13.0.tar.gz
+ sha256sums = 93023bd90722cf5e12134c2cfa6b9fd640224641e8afde41ea47caf1a89cd6a7
+
+pkgname = emacs-hydra
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1e55013a964
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>
+
+_pkgsrcname=hydra
+_pkgmaintainer=abo-abo
+_pkgdestdirname=hydra
+_versionprefix=
+pkgver=0.13.0
+pkgrel=1
+pkgdesc="Make Emacs bindings that stick around"
+pkgname=emacs-${_pkgdestdirname}
+arch=(any)
+url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}"
+license=('GPL3')
+depends=('emacs')
+optdepends=('emacs-org-mode: Comes with an org-mode export widget')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz")
+sha256sums=('93023bd90722cf5e12134c2cfa6b9fd640224641e8afde41ea47caf1a89cd6a7')
+install=${pkgname}.install
+
+build() {
+ cd "${srcdir}/${_pkgsrcname}-${pkgver}"
+ emacs -q --no-splash -batch -L . -f batch-byte-compile {hydra-ox,hydra,lv}.el
+}
+
+package() {
+ cd "${srcdir}/${_pkgsrcname}-${pkgver}"
+ install -d "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
+ install -m644 {hydra-ox,hydra,lv}.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
+}
diff --git a/emacs-hydra.install b/emacs-hydra.install
new file mode 100644
index 00000000000..419fdcea5a2
--- /dev/null
+++ b/emacs-hydra.install
@@ -0,0 +1,18 @@
+post_install () {
+
+cat << EOF
+
+==> Add this code to your .emacs file to use the mode:
+
+(require 'hydra)
+
+==> Or, with use-package:
+
+(use-package hydra)
+
+EOF
+}
+
+post_upgrade () {
+ post_install $1
+}