summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsballert2018-09-02 12:38:45 +0200
committersballert2018-09-02 12:38:45 +0200
commitaab0997bdb9335403a4c2bda8eccf5118731c090 (patch)
tree5258ff707d82a3f83ea7b2156f0a9bcea12159d9
downloadaur-aab0997bdb9335403a4c2bda8eccf5118731c090.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD34
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..b57bd9fe1ded
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = emacs-shrink-path-git
+ pkgdesc = fish-style path truncation in emacs-lisp
+ pkgver = r54.9d06c45
+ pkgrel = 1
+ url = https://gitlab.com/bennya/shrink-path.el
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = emacs
+ depends = emacs-dash
+ depends = emacs-f
+ depends = emacs-s
+ provides = emacs-shrink-path
+ conflicts = emacs-shrink-path
+ source = git+https://gitlab.com/bennya/shrink-path.el.git
+ sha256sums = SKIP
+
+pkgname = emacs-shrink-path-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..91995ea1043a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: sballert <sballert@posteo.de>
+
+_gituser="bennya"
+_gitrepo="shrink-path.el"
+
+pkgname=emacs-shrink-path-git
+pkgver=r54.9d06c45
+pkgrel=1
+pkgdesc="fish-style path truncation in emacs-lisp"
+url="https://gitlab.com/${_gituser}/${_gitrepo}"
+arch=('any')
+license=('GPL3')
+depends=('emacs' 'emacs-dash' 'emacs-f' 'emacs-s')
+makedepends=('git')
+provides=('emacs-shrink-path')
+conflicts=('emacs-shrink-path')
+source=("git+https://gitlab.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/shrink-path/
+ install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/shrink-path/
+}