summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEsben Haabendal2016-08-24 09:48:10 +0200
committerEsben Haabendal2016-08-24 09:48:10 +0200
commit0f745dc341f14624bba6810df92ae216a9f2b26e (patch)
tree0785ba20fefb563693d44c55464cc891ff661c67 /PKGBUILD
downloadaur-0f745dc341f14624bba6810df92ae216a9f2b26e.tar.gz
Initial version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
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
+}