summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlex Whitt2017-05-06 17:01:29 -0400
committerAlex Whitt2017-05-06 17:01:29 -0400
commit266e9b02f1ed8ff6af2b64907968807335b7a69e (patch)
treebd577cad29ba6d70f165ceffcbbae1a6f2a202f9 /PKGBUILD
downloadaur-emacs-top-mode.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..84e74a6a88b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>
+
+_pkgsrcname=top-mode
+_pkgdestdirname=top-mode
+_versionprefix=
+pkgver=2013_06_05.1
+_pkgsrcver=master
+pkgrel=1
+pkgdesc="Run 'top' from emacs"
+pkgname=emacs-${_pkgdestdirname}
+arch=(any)
+url="https://www.emacswiki.org/emacs/TopMode"
+license=('GPL2')
+depends=('emacs')
+source=("https://github.com/emacsmirror/top-mode/archive/master.zip")
+sha256sums=('15bb054e0447d6b557b70856fdba93382422f587dd0a01342930b3891377e4a3')
+install=${pkgname}.install
+
+build() {
+ cd "${srcdir}/${_pkgsrcname}-${_pkgsrcver}"
+ emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
+}
+
+package() {
+ cd "${srcdir}/${_pkgsrcname}-${_pkgsrcver}"
+ mkdir -p "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
+ install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
+}