summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsben Haabendal2016-08-24 09:48:10 +0200
committerEsben Haabendal2016-08-24 09:48:10 +0200
commit0f745dc341f14624bba6810df92ae216a9f2b26e (patch)
tree0785ba20fefb563693d44c55464cc891ff661c67
downloadaur-0f745dc341f14624bba6810df92ae216a9f2b26e.tar.gz
Initial version
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
-rw-r--r--emacs-execline-mode-git.install16
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cd45c74b1cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Wed Aug 24 07:39:35 UTC 2016
+pkgbase = emacs-execline-mode-git
+ pkgdesc = GNU/Emacs major mode for editing execline scripts
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = http://github.com/elebihan/execline-mode
+ install = emacs-execline-mode-git.install
+ arch = any
+ license = GPL3
+ depends = emacs
+ depends = git
+ provides = emacs-execline-mode
+ source = git+https://github.com/elebihan/execline-mode.git
+ md5sums = SKIP
+
+pkgname = emacs-execline-mode-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2812603e94d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Esben Haabendal <esben@haabendal.dk>
+
+pkgname=emacs-execline-mode-git
+_gitproj="elebihan"
+_gitrepo="execline-mode"
+pkgver=0.2.0
+pkgrel=1
+pkgdesc="GNU/Emacs major mode for editing execline scripts"
+arch=('any')
+url="http://github.com/${_gitproj}/${_gitrepo}"
+license=('GPL3')
+depends=('emacs' 'git')
+provides=('emacs-execline-mode')
+install="${pkgname}.install"
+source=("git+https://github.com/${_gitproj}/${_gitrepo}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_gitrepo"
+ # Latest annotated tag (release)
+ git describe --abbrev=0 --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$_gitrepo"
+ emacs -batch -Q -L . -f batch-byte-compile execline-mode.el
+}
+
+package() {
+ cd "$_gitrepo"
+ mkdir -p ${pkgdir}/usr/share/emacs/site-lisp/execline-mode
+ cp *.el* ${pkgdir}/usr/share/emacs/site-lisp/execline-mode
+}
diff --git a/emacs-execline-mode-git.install b/emacs-execline-mode-git.install
new file mode 100644
index 00000000000..e6604b8bd27
--- /dev/null
+++ b/emacs-execline-mode-git.install
@@ -0,0 +1,16 @@
+post_install() {
+ cat << EOF
+==> In order to use execline-mode, add the following lines to your
+~/.emacs file:
+
+(require 'execline-mode)
+EOF
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+op=$1
+shift
+$op $*