summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPoscat2019-12-05 20:37:21 +0800
committerPoscat2019-12-05 20:37:21 +0800
commitd4328c1515174227f53668526d0c97d5bb33aa46 (patch)
tree600a38eedc038892b1524524867bb0e570a706c4
parent39d69b4e450280d4aa561c839d8c10dcb7da90aa (diff)
downloadaur-d4328c1515174227f53668526d0c97d5bb33aa46.tar.gz
Compile elisp
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 5 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 98fb2358293..586b3a2fc81 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = emacs-web-server
pkgdesc = web server running Emacs Lisp handlers.
pkgver = 0.1.0
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/eschulte/emacs-web-server
arch = any
license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index 542fba3592d..0405795c56e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=emacs-web-server
pkgver=0.1.0
-pkgrel=4
+pkgrel=5
pkgdesc="web server running Emacs Lisp handlers."
arch=('any')
url="https://github.com/eschulte/emacs-web-server"
@@ -15,10 +15,11 @@ sha256sums=('9983c1f208078dad00d5fb8259b6812b0959acc5917c899be4b6dc344a0622cc')
build() {
cd "${srcdir}/${pkgname}-version-${pkgver}"
+ emacs -Q -batch -L . -f batch-byte-compile *.el
}
package() {
cd "${srcdir}/${pkgname}-version-${pkgver}"
- install -D -m 644 web-server.el "${pkgdir}"/usr/share/emacs/site-lisp/web-server/web-server.el
- install -D -m 644 web-server-status-codes.el "${pkgdir}"/usr/share/emacs/site-lisp/web-server/web-server-status-codes.el
+ mkdir -p "${pkgdir}/usr/share/emacs/site-lisp/web-server/"
+ install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/web-server/"
}