summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Mangold2016-09-21 09:23:30 +0200
committerOliver Mangold2016-09-21 09:23:30 +0200
commitd6cdd681257c26fc763c20adce64a6c7e1b585c6 (patch)
treea157b7f64f0d81b257e84bd8bf4fc82e6bb35e5f
downloadaur-d6cdd681257c26fc763c20adce64a6c7e1b585c6.tar.gz
initial package
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD18
-rw-r--r--emacs-adoc-mode.install12
3 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fc3258e1136
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = emacs-adoc-mode
+ pkgdesc = Emacs major mode for editing asciidoc files
+ pkgver = 0.6.6
+ pkgrel = 1
+ url = http://github.com/sensorflo/adoc-mode
+ install = emacs-adoc-mode.install
+ arch = any
+ license = GPL
+ depends = emacs
+ depends = emacs-markup-faces>=1.0.0
+ source = git+http://github.com/sensorflo/adoc-mode#commit=995785538489e573ad208f73c4e833ba60c5cfdb
+ md5sums = SKIP
+
+pkgname = emacs-adoc-mode
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9f14f9e8bb4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,18 @@
+# Maintainer: Oliver Mangold
+
+pkgname=emacs-adoc-mode
+pkgver=0.6.6
+pkgrel=1
+pkgdesc="Emacs major mode for editing asciidoc files"
+arch=('any')
+url="http://github.com/sensorflo/adoc-mode"
+license=('GPL')
+depends=('emacs' "emacs-markup-faces>=1.0.0")
+install=emacs-adoc-mode.install
+source=(git+http://github.com/sensorflo/adoc-mode#commit=995785538489e573ad208f73c4e833ba60c5cfdb)
+md5sums=(SKIP)
+
+package() {
+ # Install the mode for Emacs
+ install -D -m644 "$srcdir/adoc-mode/adoc-mode.el" "$pkgdir/usr/share/emacs/site-lisp/adoc-mode.el"
+}
diff --git a/emacs-adoc-mode.install b/emacs-adoc-mode.install
new file mode 100644
index 00000000000..d8ff528a1e1
--- /dev/null
+++ b/emacs-adoc-mode.install
@@ -0,0 +1,12 @@
+post_install () {
+cat << EOF
+==> Add this code to your .emacs file to use the mode:
+
+(require 'adoc-mode)
+(add-to-list 'auto-mode-alist '("\.adoc\'" . adoc-mode))
+EOF
+}
+
+post_upgrade () {
+ post_install
+}