summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Swanson2012-12-03 08:41:29 -0800
committerMike Swanson2012-12-03 08:41:29 -0800
commit072d5bf702aedf3ab2ba4ab6ddc8c97396bd7394 (patch)
tree42265d0dd91edf68a13620e7c274333cc7d9e57e
downloadaur-072d5bf702aedf3ab2ba4ab6ddc8c97396bd7394.tar.gz
Initial commit
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD42
-rw-r--r--emacs-nyan-mode.install12
4 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..498390aa42e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = emacs-nyan-mode
+ pkgdesc = Nyan Cat in your Emacs modeline
+ pkgver = 20120517
+ pkgrel = 1
+ url = http://github.com/TeMPOraL/nyan-mode/
+ install = emacs-nyan-mode.install
+ arch = any
+ license = GPL
+ makedepends = git
+ depends = emacs
+
+pkgname = emacs-nyan-mode
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..d727fb45d4d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.pkg.tar*
+*.src.tar*
+src
+pkg
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..37599598c83
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
+
+pkgname=emacs-nyan-mode
+pkgver=20120517
+pkgrel=1
+pkgdesc="Nyan Cat in your Emacs modeline"
+arch=('any')
+url="http://github.com/TeMPOraL/nyan-mode/"
+license=('GPL')
+depends=('emacs')
+makedepends=('git')
+install=emacs-nyan-mode.install
+
+_gitroot=git://github.com/TeMPOraL/nyan-mode.git
+_gitname=nyan-mode
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [[ -d "$_gitname" ]]; then
+ cd "$_gitname" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone "$_gitroot" "$_gitname"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ cd "$srcdir/$_gitname"
+
+ emacs -batch -f batch-byte-compile nyan-mode.el
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ install -d $pkgdir/usr/share/emacs/site-lisp
+ cp -a $srcdir/$_gitname/*.el* $srcdir/$_gitname/img $pkgdir/usr/share/emacs/site-lisp
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/emacs-nyan-mode.install b/emacs-nyan-mode.install
new file mode 100644
index 00000000000..e5c30f51101
--- /dev/null
+++ b/emacs-nyan-mode.install
@@ -0,0 +1,12 @@
+post_install() {
+ cat <<EOF
+==> Put this in your ~/.emacs file to enable autoloading of nyan-mode:
+
+(require 'nyan-mode)
+(nyan-mode)
+EOF
+}
+
+post_upgrade() {
+ post_install $1
+}