summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsballert2018-09-12 18:44:17 +0200
committersballert2018-09-12 18:44:17 +0200
commit8b94d46b65b9d7050f4788c8ab6ff1ac8d355522 (patch)
treeb110c665f0d4405923fadaa689399e4e49743808
downloadaur-8b94d46b65b9d7050f4788c8ab6ff1ac8d355522.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD34
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..625e5a5e814
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = emacs-imenu-list-git
+ pkgdesc = Emacs plugin to show the current buffer's imenu entries in a seperate buffer
+ pkgver = r44.04f0632
+ pkgrel = 1
+ url = https://github.com/bmag/imenu-list
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = emacs
+ provides = emacs-imenu-list
+ conflicts = emacs-imenu-list
+ source = git+https://github.com/bmag/imenu-list.git
+ sha256sums = SKIP
+
+pkgname = emacs-imenu-list-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5d04b5494ad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: sballert <sballert@posteo.de>
+
+_gituser="bmag"
+_gitrepo="imenu-list"
+
+pkgname=emacs-imenu-list-git
+pkgver=r44.04f0632
+pkgrel=1
+pkgdesc="Emacs plugin to show the current buffer's imenu entries in a seperate buffer"
+url="https://github.com/${_gituser}/${_gitrepo}"
+arch=('any')
+license=('GPL3')
+depends=('emacs')
+makedepends=('git')
+provides=('emacs-imenu-list')
+conflicts=('emacs-imenu-list')
+source=("git+https://github.com/${_gituser}/${_gitrepo}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_gitrepo"
+ printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$_gitrepo"
+ emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
+}
+
+package() {
+ cd "$_gitrepo"
+ install -d "$pkgdir"/usr/share/emacs/site-lisp/${_gitrepo}/
+ install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/${_gitrepo}/
+}