summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Eyolfson2015-08-10 17:03:07 -0400
committerJon Eyolfson2015-08-10 17:03:07 -0400
commit08a964c78c9eb9544673b46f6563b7df2d92d96c (patch)
tree5646c6e9dc2c1772cf1a5ea2306d17a089331294
downloadaur-08a964c78c9eb9544673b46f6563b7df2d92d96c.tar.gz
Initial import
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD27
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a5578b2e7e7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = emacs-rust-mode
+ pkgdesc = A major Emacs mode for editing Rust source code
+ pkgver = r188
+ pkgrel = 1
+ url = https://github.com/rust-lang/rust/tree/master/src/etc/emacs
+ arch = any
+ license = MIT
+ depends = emacs
+ source = emacs-rust-mode::git://github.com/rust-lang/rust-mode.git
+ sha256sums = SKIP
+
+pkgname = emacs-rust-mode
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..00046050fb3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Jon Eyolfson <jon@eyl.io>
+pkgname=emacs-rust-mode
+pkgver=r188
+pkgrel=1
+pkgdesc="A major Emacs mode for editing Rust source code"
+arch=('any')
+url="https://github.com/rust-lang/rust/tree/master/src/etc/emacs"
+depends=('emacs')
+license=('MIT')
+source=("$pkgname"::'git://github.com/rust-lang/rust-mode.git')
+sha256sums=(SKIP)
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s" "$(git rev-list --count HEAD)"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ emacs -batch -f batch-byte-compile rust-mode.el
+}
+
+package() {
+ install -d $pkgdir/usr/share/emacs/site-lisp
+ cd "$srcdir/$pkgname"
+ cp rust-mode.{el,elc} $pkgdir/usr/share/emacs/site-lisp
+}