summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée2015-06-11 16:47:13 +0200
committerMattias Andrée2015-06-11 16:47:13 +0200
commit0b38741783cdfa016fe33705122547d662d858b8 (patch)
tree07616e58a5899e22dbc3bb8a99e6a62cb82f2aa2
downloadaur-0b38741783cdfa016fe33705122547d662d858b8.tar.gz
Initial import, version 2.0.6
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD23
-rw-r--r--emacs-d-mode.install16
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e147b298ed2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = emacs-d-mode
+ pkgdesc = Emacs major mode for the D programming language
+ pkgver = 2.0.6
+ pkgrel = 1
+ url = http://www.wikiservice.at/d/wiki.cgi?EditorSupport/EmacsEditor
+ install = emacs-d-mode.install
+ arch = any
+ license = GPL2
+ source = https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/tarball/2.0.6
+ sha256sums = e15b325be67dd2c515ca79113d808f9d84f4e65db02167d0423d14d17c8c7109
+
+pkgname = emacs-d-mode
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ef0956422e4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+# Contributor: Gianni Vialetto <gianni@rootcube.net>
+# Contributor: Gour <gour@atmarama.net>
+
+pkgname=emacs-d-mode
+pkgver=2.0.6
+pkgrel=1
+pkgdesc="Emacs major mode for the D programming language"
+url="http://www.wikiservice.at/d/wiki.cgi?EditorSupport/EmacsEditor"
+arch=('any')
+license=('GPL2')
+depends=()
+install=$pkgname.install
+source=(https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/tarball/2.0.6)
+sha256sums=('e15b325be67dd2c515ca79113d808f9d84f4e65db02167d0423d14d17c8c7109')
+
+package() {
+ cd "$srcdir/"
+
+ install -m755 -d "$pkgdir/usr/share/emacs/site-lisp"
+ install -m644 Emacs-D-Mode-Maintainers-Emacs-D-Mode-*/d-mode.el "$pkgdir/usr/share/emacs/site-lisp"
+}
+
diff --git a/emacs-d-mode.install b/emacs-d-mode.install
new file mode 100644
index 00000000000..a7f8c2ff341
--- /dev/null
+++ b/emacs-d-mode.install
@@ -0,0 +1,16 @@
+post_install() {
+ cat << EOF
+==> To set up Emacs to automatically edit files ending in .d[i] using D-mode
+==> add the following to your ~/.emacs file (GNU Emacs) or ~/.xemacs/init.el
+==> file (XEmacs):
+
+ (autoload 'd-mode "d-mode" "Major mode for editing D code." t)
+ (add-to-list 'auto-mode-alist '("\\\.d[i]?\\\'" . d-mode))
+
+EOF
+}
+
+post_upgrade() {
+ post_install $1
+}
+