summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPierre Neidhardt2015-10-13 13:39:06 +0200
committerPierre Neidhardt2015-10-13 13:39:06 +0200
commit3147771de3410e09731cb29ea127064d3e8f09ad (patch)
treebf5aac76838e419526a7c9827566d8688b6900ae /PKGBUILD
downloadaur-3147771de3410e09731cb29ea127064d3e8f09ad.tar.gz
emacs-guess-style-git: Use git instead of archive
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..4c8a6bdc7bf4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Pierre Neidhardt <ambrevar@gmail.com>
+
+_pkgname=guess-style
+pkgname=emacs-$_pkgname-git
+pkgver=2015.04.21.g3fd1f10
+pkgrel=1
+pkgdesc="Automatic setting of code style variables"
+arch=("any")
+url="http://nschum.de/src/emacs/guess-style/"
+license=("GPL3")
+makedepends=("emacs")
+depends=("emacs")
+install="$pkgname.install"
+source=("git+https://github.com/nschum/$_pkgname.git")
+md5sums=("SKIP")
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git log -1 --format="%cd.g%h" --date=short | sed 's/-/./g'
+}
+
+build () {
+ cd "$srcdir/$_pkgname"
+ emacs --batch --no-site-file -f batch-byte-compile "$_pkgname.el"
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -dm755 "$pkgdir/usr/share/emacs/site-lisp/"
+ cp *.el{c,} "$pkgdir/usr/share/emacs/site-lisp/"
+}